Hi,
I am not sure how to do the following in Scratch.
I have a program with a main script (in sprite A) and a small script (in sprite B)
Whenever the player presses the Space key, the main script broadcasts a signal. At this point I want the small script to take over and the main script to stop. And after executing the small script, I want the control to go back to the main script (to the step after the broadcast step)
Is this possible in Scratch?
Thanks.
Offline
Yes - use the "broadcast [ ] and wait" block. This pauses the main script until the script(s) it triggers have ended, then it will carry on with the main script.
Offline