I have clouds scrolling by in the sky. I want them to move slowly, so I set their Hspeed to .2
They move the speed i want, but it looks like they are inching along the screen in a jittery/jumpy fashion. I believe it is because it's moving such a small increment per step, but how can I make the motion appear smoother while maintaining the same speed?
Slow hspeed?
Started by remmies, Dec 07 2011 06:38 PM
3 replies to this topic
#1
Posted 07 December 2011 - 06:38 PM
#2
Posted 07 December 2011 - 06:46 PM
They inch along like that because the smallest amount of movement that can be drawn is 1 pixel, and by setting hspeed to .2, it is attempting to draw 1/5 pixels. This isn't possible, so instead it moves 1 pixel every 5 steps, which looks jittery.
You could try increasing the game speed (eg. to 60 fps instead of 30), or increasing the speeds of all objects so that the clouds move at hspeed 1.
You could try increasing the game speed (eg. to 60 fps instead of 30), or increasing the speeds of all objects so that the clouds move at hspeed 1.
#3
Posted 07 December 2011 - 07:12 PM
instead of using hspeed, use the x coordinate...
#4
Posted 07 December 2011 - 07:35 PM
That would result in the same problem. 'x += .2' each step is the same as 'hspeed = .2'instead of using hspeed, use the x coordinate...
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











