Advertisement
joesv

Speed

Sep 16th, 2012
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. // Its not tested yet, tommorow I'll test it.
  2. // If you're making a game with a rocket or something just like that,
  3. //You need to make it faster every step in a second.
  4. //I think thats the roomspeed is 30 at your game, so there are 30 steps in a sec.
  5. if (speed < 19.9998) // if the speed is lower than 2(
  6. {speed += 0.33333} // he'll count up 0.3333333 a step
  7. if (speed > 19.9998}
  8. {speed -= 0.33333}
  9. // This need to be placed in the step-event of the object.
  10. //JoesV
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement