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

#1 2012-05-02 06:00:28

iamdreammm
New Scratcher
Registered: 2012-05-02
Posts: 1

How do i make my game have turns?

Hey i was wondering if anyone knew how i could make my game have turns? by that i mean make it a 2 player game so that if one command is pressed by player 1, player 1 cannot press any of his commands until player 2 has taken his turns?

Thanks
IamDreammm

Offline

 

#2 2012-05-02 06:35:47

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: How do i make my game have turns?

You might want to make a variable with who's turn it is. It would then only respond to the commands if they are by the correct player.

Offline

 

#3 2012-05-03 06:07:59

Jem12
Scratcher
Registered: 2012-04-20
Posts: 100+

Re: How do i make my game have turns?

you can have so after a certain amount of time it will change (varialble) or after a button is pressed.  lol


"In the begging the universe was created, this made a lot of people angry and was widly regarded as a bad move" ~  Douglas Adams ~ The resturant at the end of the universe

Offline

 

#4 2012-05-04 20:42:12

scratcher5000
Scratcher
Registered: 2012-02-19
Posts: 100+

Re: How do i make my game have turns?

you could make it have a broadcast...

here's an example...

when [a v] key pressed
broadcast [p2 turn]
If you have any more questions feel free to ask...and happy scratching

Last edited by scratcher5000 (2012-05-04 20:42:56)


Click The Picture!!!https://lh5.googleusercontent.com/-AJkKdtvtfB8/T8wjCMxcatI/AAAAAAAAAIs/46buzBlD9U0/s0-d/cooltext709275256.png I am currently http://blocks.scratchr.org/API.php?user=scratcher5000&action=onlineStatus&type=text

Offline

 

Board footer