The situation is that I have choices on my screen. Four of them to be exact, and each choice is a sprite. In the background, there is a countdown, from 10 to 0, and a wait 1 second block between them.
I want that if a choice is clicked (and it is the wrong one), the timer restarts, so it goes back to the background that has 10 on it. How do I do that?
Currently, the problem is that once the choice is clicked, one script restarts the backgrounds but the script from before still plays. I want this one to stop when a choice is clicked.
It sounds a little bit confusing, but thank you!
Offline
I'm not understanding what you mean but I can try to help you the best I can with what I think you meant. Okay, so try this; Make a variable, and call it "timer". when the choices are available to be clicked, set the "timer" variable to 1. Make the choices sprites have their scripts in a "repeat until "timer" = 0" block, and when a choice is clicked, set the "timer" variable to 0. When you want the process to restart, simply set the variable back to 1 and broadcast the scripts for the choices. Hope I helped! Also, I could probably help even more by looking at your project. Could you upload it so I could download and take a look?
Offline
17zhuor wrote:
Sure! I uploaded it now, thanks a bunch.
I fixed it for ya (: Not sure where else you were taking it, so I stopped working on it, but I left a bunch of notes you can read so you can see why I did some of the things in it (: Hope I helped! Here's a link to the project:
http://scratch.mit.edu/projects/Zparx/2604178
Offline