One of my students is making a game where this machine shoots and destroys
some people running in the street, the issue we are having is making each person disappear individualy instead of all at the same time.
We have it set for when the colors touch its broadcasted for them to disappear, but we only want one to disappear at a time like the space invader games.
I've tried to set it up like one of the games but it still doesnt work correctly.
Any ideas of how to set up the script?
Thanks a million.
Offline
Can I see what you have so far? Then I might be able to help you.
Offline
You might consider having the "if touching colour" script in each individual person being shot, that way, when the bullet hits the person only the person hit hides.
I hope this helped!
Offline
You might be better off putting the script to sense if the ammo is touching someone on the people sprites themselves. That way they can have their own individual hide scripts instead of receiving a universal broadcast.
Offline
So that broadcast is set to go off when the bullet touches a person, right? Most likely no one is disappearing because the bullet is disappearing too fast for them to sense. So for the bullet's sensor you can put in an empty repeat (1) block before it hides, like this:
This way the bullet stays showing for an extra frame before disappearing, giving the people time to sense the bullet.
Offline
Jawaria wrote:
how do u add scratch projects to gallaries?
It depends on how the gallery owner has set the gallery...If he set it for everybody then press the "add my projects" button. If not then you can't add... If you want to add other people's projects to your galleries click the "add to gallery" button on the project and select which one. Hope this helped!
Last edited by LordSydney (2011-06-23 18:53:48)
Offline