This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-08-13 15:58:22

Technic20
Scratcher
Registered: 2007-09-16
Posts: 69

Help with moving

Hi guys,

I know how to make sprites move (however) many steps depending on what arrow key is pressed, but here i am in a tricky situation.

I'm trying to make a character do the above, but when i program it to do so and then test it every time I press any arrow key he rotates (i don't want it to rotate) and then moves (however) many steps.

Now I know what the problem is, it's the point in direction block in the Motion section. But I can't get around it. Can Anyone help me with an answer?

Thanks

Last edited by Technic20 (2008-08-13 15:59:14)


~~~Check Out My Projects!~~~

Offline

 

#2 2008-08-13 16:42:46

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Help with moving

you can use the
change x by ( )
and
change y by ( )
blocks. It has the same effect and doesn't require you to point in a direction. To move left and down, just use negative numbers. If you only want them to point left and right, you can press the <--> button next to the sprite info above the script pane, and then your sprite will only point left/right.

Offline

 

Board footer