Pages: 1
Topic closed
I want to know how to do multi direction with arrow keys not using "mouse down" type. (Multi direction as in every direction not just up, down, right, and left.)
Found out how from this project: http://scratch.mit.edu/projects/FoxDur/487526
Last edited by Magnie (2009-05-05 17:20:19)
Offline
Well the script would be
<when green flag clicked>
<forever>
<if><key[ right arrow ]pressed?>
<change{ scrollx}by( -5
<if><key[ left arrow ]pressed?>
<change{ scrollx}by( 5
<if><key[ up arrow ]pressed?>
<change{ scrolly}by( -5
<if><key[ down arrow ]pressed?>
<change{ scrolly}by( 5
although it doesn't seem like it would work, it does!
Offline
try checking this out
http://scratch.mit.edu/projects/archtest/374330
Offline
bosox397: I ment in all directions not just up down right and left.
Archmage: Same thing as I said to bosox397
Like if you turn 5 degrees then move forward the turn 5 degrees.
Offline
Thanks to this project: http://scratch.mit.edu/projects/FoxDur/487526
I can do it! Thanks guys for trying to help!
Offline
Cool.
Offline
welcome
Offline
Hmm... Difficult, but you would just have to change the sprite's x and y position at the same time when the arrow key is pressed. And you may have to put on your maths thinking cap!
Offline
pokemon_master12 wrote:
Hmm... Difficult, but you would just have to change the sprite's x and y position at the same time when the arrow key is pressed. And you may have to put on your maths thinking cap!
![]()
we already have the answer in a much better way. and that was my way anyway. i already suggested it
Offline
Topic closed
Pages: 1