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

#1 2007-05-29 20:19:34

callyie
Scratcher
Registered: 2007-05-29
Posts: 1

how to make the sprite go left and right?

i can only make it go on way? can some one help me

Offline

 

#2 2007-05-29 20:28:57

squirr3lattack
Scratcher
Registered: 2007-05-27
Posts: 11

Re: how to make the sprite go left and right?

hey callyie! what you do to move your sprite. go to the sprite's "scripts" tab and put the tabs this way:

[when "insert key" is pressed]
change "x/y" by "20/-20"

the stuff in parentheses is things that you can change.

the x and y axies work like this:

"x 10" - will move avatar right
"x -10" - will move avatar left
"y 10" - will move avatar up
"y -10" - will move avatar down

hope that helps, mate.  wink

Offline

 

#3 2007-05-30 03:01:53

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: how to make the sprite go left and right?

Or - use the "set direction to" command.

Eg

When left arrow pressed
set direction to left
move 10 steps.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

Board footer