how do you move a animal with arrow keys?
Offline
Ok Angelflower0, this is the script.
whenclicked
foreverifkeyup arrow ▼pressed?point in direction0 ▼movenumber of steps you wantstepsifkeydown arrow ▼pressed?point in direction180 ▼movenumber of steps you wantstepsifkeyright arrow ▼pressed?point in direction90 ▼movenumber of steps you wantstepsifkeyleft arrow ▼pressed?point in direction-90 ▼movenumber of steps you wantsteps
Last edited by Firedrake969 (2012-07-22 10:21:55)
Offline
Or you could use this:
whenclicked
foreverifkeyleft arrow ▼pressed?change x by-10This number will determine how fast the sprite moves.ifkeyright arrow ▼pressed?change x by10ifkeyup arrow ▼pressed?change y by10ifkeydown arrow ▼pressed?change y by-10
Last edited by JH1010 (2012-07-22 11:08:03)
Offline
JH1010 wrote:
Or you could use this:
whenclicked
foreverifkeyleft arrow ▼pressed?change x by-10This number will determine how fast the sprite moves.ifkeyright arrow ▼pressed?change x by10ifkeyup arrow ▼pressed?change y by10ifkeydown arrow ▼pressed?change y by-10
Angelflower, if you want it pointed in a certain direction, use my script.
Offline
Or:
this will move in the direction you are pointing, and you use the left and right arrow keys to turn.whenclicked
foreverifkeyup arrow ▼pressed?movehow fast you want to movestepsifkeydown arrow ▼pressed?movehow fast you want to move backward [note: be sure that this number is negative.]stepsifkeyright arrow ▼pressed?turn
how fast you want to turndegreesifkeyleft arrow ▼pressed?turn
how fast you want to turndegrees
Offline