This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-02-27 22:06:59

HydroCity
New Scratcher
Registered: 2012-02-09
Posts: 35

Shoot a Sprite? Respawn? How!?

For a school assignment, i need to make a game that has enemies that shoot at you, and respawn! sadly the teacher has not taught us directly how to do so. if anyone could help, or show me how to do either, it would help immensely.

Offline

 

#2 2012-02-27 22:16:58

HydroCity
New Scratcher
Registered: 2012-02-09
Posts: 35

Re: Shoot a Sprite? Respawn? How!?

Also, i need to shoot as well :S

Offline

 

#3 2012-02-28 16:38:44

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Shoot a Sprite? Respawn? How!?

I'm hesitant to offer you the direct solution, but here are somethings to ponder:

a) how do you get your gun to always be located on your sprite, but always pointing at your mouse?

b) when a sprite dies, it has to hide, wait for a little bit, and respawn.  What blocks make a sprite hide, wait a bit, and then reveal itself?

c) a sprite dies when it...
if(doing what is needed to die)
{
    die
}


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#4 2012-02-28 18:54:20

SOScratch
Scratcher
Registered: 2010-02-01
Posts: 100+

Re: Shoot a Sprite? Respawn? How!?

I can help with when you shoot an enemy.
Doing a full explanation would be WAY TOO LONG!

Here is a script for when you shoot an enemy:

when gf clicked
show
forever if <touching [bullet v]>
     hide
     wait (3) seconds
     show
end
There! If you need anything else, I'm happy to help!

Last edited by SOScratch (2012-02-28 18:57:04)


-SOScratch
Scratch On!

Offline

 

Board footer