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

#1 2013-04-16 20:00:13

Xczyro
New Scratcher
Registered: 2013-04-16
Posts: 1

Moving to sprites at the same time?

I've already made my 2 pacman/sprite players, but when one moves the other one can't.

Player 1 Code (Yellow Pac-Man):
When (Green Flag Clicked)
Forever
Next costume
Wait 0.07 secs
Next costume
wait 0.07 secs

When up arrow key pressed
Point in direction 0
Move 2 Steps

(Repeat for left, right and down)

When (Green Flag Clicked)
Forever if color (yellow) is touching (blue)?
Move -5 steps

Player 2 Code (Red Pacman):
Player 1 Code:
When (Green Flag Clicked)
Forever
Next costume
Wait 0.07 secs
Next costume
wait 0.07 secs

When w key pressed
Point in direction 0
Move 2 Steps

(Repeat for a, d and s)

When (Green Flag Clicked)
Forever if color (yellow) is touching (blue)?
Move -5 steps

Offline

 

Board footer