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

#1 2008-09-07 08:18:32

andy321
Scratcher
Registered: 2008-08-06
Posts: 53

movement and direction

when ever i make a charachter move like in a game, not in a animation, but in a game, the sprite moves whatever probably one step, then continues. also when i want the character to point left, it ends up upside down.<when[right arrow]key pressed><move(-4 )steps><point in direction(-90

Offline

 

#2 2008-09-07 08:22:16

registeel
Scratcher
Registered: 2008-04-27
Posts: 500+

Offline

 

#3 2008-09-07 08:24:55

andy321
Scratcher
Registered: 2008-08-06
Posts: 53

Re: movement and direction

i meant that. but how does that help me?

Offline

 

#4 2008-09-07 08:32:54

registeel
Scratcher
Registered: 2008-04-27
Posts: 500+

Re: movement and direction

press the <-> button above . and under @ at the top next to the sprite

Last edited by registeel (2008-09-07 08:33:46)

Offline

 

#5 2008-09-07 08:35:43

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

Re: movement and direction

At the top there is a small frame (next to the block category selector) with information about the sprite (also lets you switch between scripts, costumes, and sounds). Aligned to the left of the pane are the three buttons. On is an arrow going a full 360 degrees, another one looks like so: <--> and another is just a dot. If you only want your sprite to point right & left, click the <--> button. If you always want it to point right, press the dot.

Hope this helps!

Offline

 

#6 2008-09-07 13:53:09

andy321
Scratcher
Registered: 2008-08-06
Posts: 53

Re: movement and direction

what about the move movement? that doesn't solve that.

Offline

 

#7 2008-09-07 14:05:42

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

Re: movement and direction

andy321 wrote:

what about the move movement? that doesn't solve that.

Could you please clarify?

Offline

 

#8 2008-09-07 14:28:54

andy321
Scratcher
Registered: 2008-08-06
Posts: 53

Re: movement and direction

<when[right arrow]key pressed><change x by(1 when ever i want the chracter to move, he'll move a step and then continue.

Offline

 

#9 2008-09-07 14:44:57

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

Re: movement and direction

oh, simple. Use

when Green Flag clicked
forever
  if < key [ right arrow ] > pressed
     change x by 1
  if < key [ left arrow ] > pressed
     change x by -1

instead

Offline

 

#10 2008-09-07 19:11:02

andy321
Scratcher
Registered: 2008-08-06
Posts: 53

Re: movement and direction

oh thanks.

Offline

 

Board footer