Jump to content


Photo

Slow hspeed?


  • Please log in to reply
3 replies to this topic

#1 remmies

remmies

    GMC Member

  • GMC Member
  • 119 posts
  • Version:GM:Studio

Posted 07 December 2011 - 06:38 PM

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?
  • 0

#2 turgon

turgon

    VP Studios

  • GMC Member
  • 397 posts

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.
  • 0

#3 Ashley Phoenix

Ashley Phoenix

    GMC Member

  • GMC Member
  • 316 posts
  • Version:Unknown

Posted 07 December 2011 - 07:12 PM

instead of using hspeed, use the x coordinate...
  • 0

#4 turgon

turgon

    VP Studios

  • GMC Member
  • 397 posts

Posted 07 December 2011 - 07:35 PM

instead of using hspeed, use the x coordinate...

That would result in the same problem. 'x += .2' each step is the same as 'hspeed = .2'
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users