I need help!
I am currently working on a game that will end up being awesome. But I have run into some trouble. Can someone please tell me a way to have a sprite be clicked 10 times, separately, then display a new background. Any help will be much appreciated.
Thanking you in advance.
Woodsy305
Offline
<when[ sprite name here ]clicked>
<if><( <{ variable }> <=> 10 )>
<broadcast[ clicked 10 times
<else>
<change{ variable }by( 1
<end>
Offline
On the sprite that is going to be clicked, define a variable called "Clicks" and set it to zero on a Green Flag hat.
On the sprite that is going to be clicked, set up a When Clicked hat and under it put a "Change Clicks by 1" block. Under that, set up an "IF" block that tests to see if Clicks is greater than 9. If it is, Broadcast a message called "Change Background".
On the stage, set up a "When I Recieve Change Background" hat and under that put a "Next Background" block.
That should do it!
Offline
Paddle2See wrote:
ihaveamac - you beat me to the post by 4 seconds!
LOL I did?
Offline