Enemies

Game Editor comments and discussion.

Enemies

Postby The achievement » Tue Feb 28, 2006 1:00 am

Hi guys again, well i have this problem with my enemies i made that look like cheeseburgers, but when i kill one of them, they all die! Huh? Well i cloned them all is that ok? If that is the problem can you tell me how i make him kill me and i can kill him? The code is probaly (Destroy actor.player);
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby willg101 » Tue Feb 28, 2006 1:03 am

If you have any clones of an actor, and you tell GE to kill that actor, all the clones die. If you're using a bullet/collision setup, use collideActor instead of the specific actor.
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby Novice » Tue Feb 28, 2006 9:58 am

if your code is inside the enemy use event actor in the destroy code if its in the bullet or whatever use colide actor like wilig101 said.
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron