What can I use to move the sprite with x and y at the same time, sort of as a diagonal path?
Or is Scratch incapable of it? I don't want it to go one way and then the other to go diagonal, I want it to happen all in one.
An example is, if I press the "Up" key, it will move diagonally.
Offline
You could use the <move( )steps>?
Or, you could use:
<go to x
<x position> + how much you want to change X by )y
<y position> + how much you want to change Y by
I'm not sure if you can, but tell me if the above methods worked!
Offline
When key up pressed
change x by 5
change y by -5
You want something like that right? Just try it in scratch and see if you get the results you wanted.
Offline
archmage wrote:
When key up pressed
change x by 5
change y by -5
You want something like that right? Just try it in scratch and see if you get the results you wanted.
I think PrimusGod is saying that a script that changes both X and Y at the same time is needed. That will have a slight time delay.
Why did I say "that" so many times up there?!
Offline
I use that kind of script all the time to move diagonally and it doesn't give me problems. But you you want to do it with just 1 block you could do this
when up pressed go to x:(x position+5) y:(y position-5)
Last edited by archmage (2010-01-05 15:49:14)
Offline