| Mirage Source http://miragesource.net/forums/ |
|
| Scrolling Code http://miragesource.net/forums/viewtopic.php?f=201&t=4922 |
Page 1 of 1 |
| Author: | Tony [ Sat Jan 03, 2009 3:10 pm ] |
| Post subject: | Scrolling Code |
Yes, I'm creating my own scrolling code. Currently practicing with my object editor. So I have a problem, yes it scrolls but the lazyness isn't working Code: Case Dir_Right If ViewX < TotalWidth Then TempV = ViewX + ScrollAmount Do Until ViewX = TempV ViewX = ViewX + Lazyness Sleep 1 DoEvents Loop End If Lazyness is what's going to make it scroll lately smoothly kinda like a drag effect. But it just jumps to the scrollamount. Any ideas why it doesn't loop? Like ViewX = + 1, ViewX = + 1, ViewX = + 1, ViewX = + 1 |
|
| Author: | GIAKEN [ Sat Jan 03, 2009 4:45 pm ] |
| Post subject: | Re: Scrolling Code |
Change Lazyness to 1? |
|
| Author: | Tony [ Sat Jan 03, 2009 5:42 pm ] |
| Post subject: | Re: Scrolling Code |
GIAKEN wrote: Change Lazyness to 1? It is 1. |
|
| Author: | Labmonkey [ Sat Jan 03, 2009 8:44 pm ] |
| Post subject: | Re: Scrolling Code |
instead of looping, maybe break for the sub? |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|