So I'm making a King of Buttons style game, but I can't seem to make an easy way to post comments.
What I want to do is have a variable, and every time you press the button, the variable goes up by one.
And if the variable reaches a certain number, the game will say a comment
ex.
If you press the button 25 times
the button says "Stop pressing enter!!"
PLEASE HELP, I FEEL STUPID!
Offline
To make the variable change:
When Button Clicked
change variable by 1
And then...
When Green Flag Clicked
wait until variable = 25
say "Stop pressing enter!!"
Does that work?
Offline
Lol, just put when flag clicked (If key enter pressed) and (Variable) smaller than 25, change (variable) by 1. And when flag clicked, if (variable) equals 25, say (insert quote here) hope this helped!
Offline
carnack wrote:
Lol, just put when flag clicked (If key enter pressed) and (Variable) smaller than 25, change (variable) by 1. And when flag clicked, if (variable) equals 25, say (insert quote here) hope this helped!
Nice one. xP
Offline
THANK YOU SO MUCH!
I got it, yay, now I can make my game! Sorry, I'm new to this whole Scratch thing :p
Offline
or :
if(button clicked) change variable by 1 wait until (button not pressed) end if if (variable = 25) say "STOP PRESSING ENTER " for two seconds end if
or that, which is better if you want fewer scripts
Offline