I am horribly complex in my codes so, when i screwed up my current project i am having trouble fixing it. This project is a two player RPS. I love using broadcast so I always use it. This Project is a two player RPS. Well, this does not work with my current project. It wold take to long to put all the blocks in ,but what it does is when my countdown gets to below zero it broadcasts a message of what the player chose as their thing, but since each interacts with all the other items then I have multiple sprites responding to one broadcast and causing a chain reaction. I need something to fix this or an alternate method.
Offline
I don't really think that you're able to do 2 player things on Scratch, so it is better to do it against the computer.
For the computer:
To determine a random outcome, you can do this:
<when green flag clicked>
<switch to costume[ <pick random( 1 )to( 3
Of course, if you want, you can make more things before and after. That code should make it so that it will pick random, (rock, paper, scissors).
If you want to make it always pick the same object, do this:
<when green flag clicked>
<switch to costume[ rock ]
Hope that helps!
Offline