abdulahi237

basically i am trying to make a game. i need the game to start initialy when i grab an item. if i don't grab the items the other functions of the game is paused until i grab the items, the character grabbing the item can still move, however, everything else cannot. basically the item is what allows the game to start. i don't know how to implement that into my game. can someone help ???

a-jar-of-tuna

Do you mean touching when you say grab?
when green flag clicked
wait until <touching [item v] ?>
broadcast [start rest of the game v]
“wait until” works good for your purpose.

Ask me if you would like elaboration.

abdulahi237

i'm sorry. that isn't working… do i just put that into my game or do i have to do something else???

a-jar-of-tuna

It would be helpful to share your project with me so I can assist you better

a-jar-of-tuna

But no, you have to change the rest of your code to incorporate that script. Here's an example:
Original script (in character sprite):
when green flag clicked
wait until <touching [item v] ?>
broadcast [start rest v]
For the scripts that handle the other features (that are supposed to come after the grab), you need to replace
when green flag clicked
do other stuff
with
when I receive [start rest v]
do other stuff

abdulahi237

here is the link to my work… https://scratch.mit.edu/projects/305275810
i'm trying to get spirit one to touch the star and then get the game going. before touching the star spirit one still have mobility. hopefully i make sense.

a-jar-of-tuna

You have to put the script I showed above in “Sprite1”, not “Sprite3”. Then, for the script in “Sprite3” that has the “forever” and “wait 1.2 seconds” you need to replace
when green flag clicked
with
when I receive [start rest of the game v]

abdulahi237

it working.. thank you VERY MUCH FOR YOUR HELP. i appreciated it