Page 1 of 1

Noob question - enemies

PostPosted: Tue Apr 14, 2009 7:07 pm
by sillydraco
alright, i have an actor "bat" that has a draw actor event, towards two actors (draco and jacree). you can switch between the two players by using "e" or "r". at the moment, i can only get the bats (i made clones) to move towards draco, and when they get shot with a fireball instead of just one dying, they all die. anybody know how to fix this?

Re: Noob question - enemies

PostPosted: Tue Apr 14, 2009 7:19 pm
by jimmynewguy
for the bat collision on anyside of fireball destroy the "Event Actor" not bat so only the one the hits the fireball dies

Re: Noob question - enemies

PostPosted: Tue Apr 14, 2009 7:23 pm
by DST
Use the references Collide Actor, Event Actor, Creator Actor, and Parent Actor to target specific actors in collisions.
If the fireball has the code, use Collide Actor. If the bat has the code, use Event Actor.

Although in many cases you use both, as the fireball is also usually destroyed in such collisions.

Re: Noob question - enemies

PostPosted: Wed Apr 15, 2009 4:06 am
by sillydraco
ah i see! thanks that helps a lot!