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

#1 2008-08-16 17:37:08

jon182
Scratcher
Registered: 2008-08-08
Posts: 55

I Need Help Quickly Ppppllzzzzzzzzzz

ok. i have a good shotting method for my enemies. (theyir shooting me) anyways i have the actual bullet and the turret as 2 seperate sprites, how do i make it so that when i "kill the turret" (shoot it and have it disapear) the bullet disapears too? Lastly my bullets are green and the turret is black. ansd some red. e=turret bullets are red

Offline

 

#2 2008-08-16 18:41:41

the_guardian
Scratcher
Registered: 2008-03-16
Posts: 98

Re: I Need Help Quickly Ppppllzzzzzzzzzz

When the turret is killed, brodcast a message that the bullet will recieve;  like 'hide bullet' or something along those lines.

Last edited by the_guardian (2008-08-16 21:40:26)


Guardian 3D!  http://scratch.mit.edu/projects/the_guardian/169865

Offline

 

#3 2008-08-16 20:37:03

PetertheGeek
Scratcher
Registered: 2008-07-21
Posts: 34

Re: I Need Help Quickly Ppppllzzzzzzzzzz

You could put this script for the bullet:

<when green flag clicked>
<forever if><touching[ turret ]>
<hide>

or something like that.


Check out my Scratch Blog or my new game Tunnel!

Offline

 

#4 2008-08-17 02:23:39

jon182
Scratcher
Registered: 2008-08-08
Posts: 55

Re: I Need Help Quickly Ppppllzzzzzzzzzz

no, i mean that when my ninja star touches the turet  and the turret goes away i want the bullets from the turret to go away too.

Offline

 

#5 2008-08-17 02:31:01

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: I Need Help Quickly Ppppllzzzzzzzzzz

Oh, put the bullet script inside one of these:

<forever>
<if><( <{ hit  }>  <=> 0  )>
<end>
<end>

That way, when you hit the turret, that variable changes to 1 and voila!

Last edited by Bluestribute (2008-08-17 02:31:11)


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

Board footer