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

#1 2013-03-21 23:09:33

mooph
Scratcher
Registered: 2010-11-21
Posts: 3

A question about movement

HI! I'm making a somewhat "test your might" esque game (If you've ever played Mortal Kombat) But I can't seem to make it so that when the spacebar is pressed, the cursor stops moving.

    Basically, there is a cursor moving up and down a meter. The meter has different colors and what ever color the cursor lands on will determine something else in my game. I just need to know ho to make something stop immediately after you press a key.
    Thank you!

Offline

 

#2 2013-03-22 09:55:40

newnewfew
Scratcher
Registered: 2013-02-23
Posts: 68

Re: A question about movement

when gf clicked
point in direction [0]
repeat until <key [space] pressed?>
 move 10 steps
 if <touching [end of meter]>
  turn [180] degrees
 end
end
do the rest of the stuff


It's contest time!
http://scratch.mit.edu/projects/newnewfew/3218957

Offline

 

Board footer