by J Maker » Sun Aug 26, 2007 1:58 am
i use:
- Code: Select all
x=x+5;//right and repeat
- Code: Select all
x=x-5;//left and repeat
but dsd's code should work but wouldn't keep going after the key is let go of (key up) mine does i know that for sure.
i've also encountered a moving problem, if i use velocities to move on a side scroller or top down, if my player's moving let's say right, and he collides with the top or bottom of a square he just stops
Some people believe Chuck Norris evolved from a dinosaur, the Chucknorisaurus.
----------------------------------------------------------------------------------
Chuck Norris doesn't sleep, he waits.
----------------------------------------------------------------------------------
Chuck Norris doesn't hunt, he kills.
----------------------------------------------------------------------------------
Chuck Norris once shot down a german fighter plane with his finger by yelling BANG!!!
----------------------------------------------------------------------------------