Noob question - enemies

Game Editor comments and discussion.

Noob question - enemies

Postby sillydraco » Tue Apr 14, 2009 7:07 pm

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?
Time for sleepy, dream of new things...new life, new reality, new wings.
Image
User avatar
sillydraco
 
Posts: 71
Joined: Fri Apr 03, 2009 7:54 am
Score: 3 Give a positive score

Re: Noob question - enemies

Postby jimmynewguy » Tue Apr 14, 2009 7:19 pm

for the bat collision on anyside of fireball destroy the "Event Actor" not bat so only the one the hits the fireball dies
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: Noob question - enemies

Postby DST » Tue Apr 14, 2009 7:23 pm

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.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: Noob question - enemies

Postby sillydraco » Wed Apr 15, 2009 4:06 am

ah i see! thanks that helps a lot!
Time for sleepy, dream of new things...new life, new reality, new wings.
Image
User avatar
sillydraco
 
Posts: 71
Joined: Fri Apr 03, 2009 7:54 am
Score: 3 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron