Discuss Scratch

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

“If today were the last day of your life, would you want to do what you are about to do today?” - Steve Jobs
Check out my profile!
Follow Me!
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.
ParkerS98
Scratcher
46 posts

HELP!!!!!!!

CEOofApple wrote:

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

CEOofApple wrote:

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)


–There are really only three kinds of people in the world: those who can count and those who can't.

–Confucius say, “Man who run in front of car get tired, but man who run behind car get exhausted.”

Check out my air hockey game here! Now with Space theme!
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?

district 12 tribute!!!

Powered by DjangoBB