Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » HELP!!!!!!!
- CEOofApple
- Scratcher
38 posts
HELP!!!!!!!
Lets say, that you have bad guys coming at you and if they touch you, you die. How do you do that? Also lets say bacon is the hero's weapon, and you want to make the bad guys die as soon as the bacon touch's them. How do you do that!?
Thanks,
#CEOofApple
Thanks,
#CEOofApple
- lafoudre
- Scratcher
100+ posts
HELP!!!!!!!
The characters that will die should have a forever loop and in it should test with the sensing block “touching?” (light blue)
Then you can hide the died sprite.
This works with a sprite representing an attacker or a sprite representing a weapon.
Now, you #CEOofApple, you own me your best prototype. Just send it to “Microsoft drive, 1a, NY”. Thanks.
Then you can hide the died sprite.
This works with a sprite representing an attacker or a sprite representing a weapon.
Now, you #CEOofApple, you own me your best prototype. Just send it to “Microsoft drive, 1a, NY”. Thanks.
- ParkerS98
- Scratcher
46 posts
HELP!!!!!!!
Lets say, that you have bad guys coming at you and if they touch you, you die. How do you do that?
This should work:
when gf clicked
forever
if <touching [bad guy v]>
hide
stop [all v]
end
end
Also lets say bacon is the hero's weapon, and you want to make the bad guys die as soon as the bacon touch's them. How do you do that!?
You could do this one of two ways. You could either make bacon its own sprite, and run this script:
when gf clicked
forever
if <touching [bacon v]>
hide
stop [all v]
end
end
Or you could incorporate bacon into one of the bad guy's costumes, and run this:
when gf clicked
forever
if <touching [bad guy v]>
if <([costume name v] of [bad guy v]) = [bacon]>
hide
stop [all]
end
end
end
Hope this helps!
–ParkerS98
Last edited by ParkerS98 (Oct. 28, 2013 19:59:49)
- katniss2014
- Scratcher
99 posts
HELP!!!!!!!
so say I was to make a maze game, how would I keep the sprite from being able to go through the walls?
- Discussion Forums
- » Help with Scripts
- » HELP!!!!!!!