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
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)
Offline
You could put this script for the bullet:
<when green flag clicked>
<forever if><touching[ turret ]>
<hide>
or something like that.
Offline
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)
Offline