I am currently making a game. When I first hold down the right or left key, the character goes that direction once, then starts going. How do I eliminate this delay?
Offline
Here's how:
When Green flag clicked:
forever
------------------
if key left arrow pressed
change x by 3
----------------
if key right arrow pressed
change x by -3
-------------------
if key up arrow pressed
change y by 3
------------------
if key down arrow pressed
change y by -3
-end-
This is more accurate.
Last edited by joeyman (2008-07-15 22:50:30)
Offline
joeyman wrote:
Here's how:
When Green flag clicked:
forever
------------------
if key left arrow pressed
change x by 3
----------------
if key right arrow pressed
change x by -3
-------------------
if key up arrow pressed
change y by 3
------------------
if key down arrow pressed
change y by -3
-end-
This is more accurate.
What is the all about?
Offline
<say[abuser]for( 80 )secs> now ok
_____________________________
This distance aint far princess: by comic book sonic
Last edited by shadow_and_sonic (2008-07-16 12:12:27)
Offline
joeyman wrote:
Here's how:
When Green flag clicked:
forever
------------------
if key left arrow pressed
change x by 3
----------------
if key right arrow pressed
change x by -3
-------------------
if key up arrow pressed
change y by 3
------------------
if key down arrow pressed
change y by -3
-end-
This is more accurate.
I never thought of using the x and y thing.
That might really help me someday.
Offline