Discuss Scratch

CartoonifyChris
Scratcher
12 posts

How do you make a "will you press the button" game?

Ok, so i had this idea of making a button game about the popular “will you press the button” game. I know how to make a randomizer but i can't make the “pressing it or not” part. Also i need help with counting how many people pressed it or not with cloud data( (even though i do use cloud data in some of my games). btw there are many choices to press it or not, so thx for helping if you did! I just need help with the variables for it.


sylertiger123
Scratcher
25 posts

How do you make a "will you press the button" game?

Pressing or not? Simple. Make a button sprite and an “I will not!” button sprite. Then, on both, do this:
whenthisspriteclickedsetclickOrNottoYes or NobroadcastbuttonClicked
whenIreceivebuttonClickedhide

On stage, do this:

whenIreceivebuttonClickedswitchbackdroptoafterButtonClickedif(clickOrNot)=YesthenchangeyesClickersby1if(clickOrNot)=NothenchangenoClickersby1

I'll get back to you on percentages. Still calculating that.

Powered by DjangoBB