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

#1 2012-06-29 21:26:12

pc10015
New Scratcher
Registered: 2012-06-13
Posts: 7

Moving words in order

Can someone tell me how to move different sprites in order using the same keys.

Offline

 

#2 2012-06-29 21:27:57

wolfdude999
Scratcher
Registered: 2012-01-07
Posts: 1000+

Re: Moving words in order

What do you mean?


http://i48.tinypic.com/15yxmp4.png

Offline

 

#3 2012-06-29 21:35:15

pc10015
New Scratcher
Registered: 2012-06-13
Posts: 7

Re: Moving words in order

what i mean is i want to move about 3 different words with arrow keys but one by one in order.

Offline

 

#4 2012-06-30 06:37:44

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Moving words in order

IF you mean what I think you mean, then use this:

when gf clicked// first sprite
repeat until <key [space v] pressed?>
if <key [left arrow v] pressed?>
change x by (-5)
end
if <key [right arrow v] pressed?>
change x by (5)
end
if <key [up arrow v] pressed?>
change y by (5)
end
if <key [down arrow v] pressed?>
change y by (-5)
end
end
change [counter v] by (1)

when gf clicked// 2nd sprite
forever
if <(counter) = (1)>
repeat until <key [space v] pressed?>
if <key [left arrow v] pressed?>
change x by (-5)
end
if <key [right arrow v] pressed?>//etc...
end
end
change [counter v] by (1)

when gf clicked// 3rd sprite
forever
if <(counter) = (2)>
repeat until <key [space v] pressed?>
if <key [left arrow v] pressed?>
change x by (-5)
end
if <key [right arrow v] pressed?>//etc...
end
end
change [counter v] by (1)
this would let you move one sprite, until you press space and then let you move another sprite, and after you press space let you move the last

could also be done with broadcasts, but that depends on if you've got a large game.

Last edited by zammer990 (2012-06-30 06:38:27)


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#5 2012-07-01 01:52:43

pc10015
New Scratcher
Registered: 2012-06-13
Posts: 7

Re: Moving words in order

can anyone tell me how to do this using broadcast

Offline

 

#6 2012-07-01 02:32:39

pc10015
New Scratcher
Registered: 2012-06-13
Posts: 7

Re: Moving words in order

Thank you 'zammer990' for your reply it was really helpful.

Offline

 

#7 2012-07-01 02:45:36

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Moving words in order

Would you still want it with broadcasts?

http://img10.imageshack.us/img10/8322/usingbroadcast.gif


Hai.

Offline

 

#8 2012-07-01 18:03:57

pc10015
New Scratcher
Registered: 2012-06-13
Posts: 7

Re: Moving words in order

Thank you 'fg123'

Offline

 

Board footer