Help with Destroy actor

Non-platform specific questions.

Help with Destroy actor

Postby equinox » Mon Mar 02, 2009 2:42 pm

I changed collision. But I have a problem.


script editor:test->mouse down=
if(strcmp(actors[i].clonename, "MIO.0") != 0){//se collido con diverso da MIO.0
actors->HP = -1;
Index.textNumber = actors->HP;
}
this ok.

but in script editor MIO->drawactor

if(HP <= 0){
DestroyActor("Event Actor");
}


this dosent work. Who can help with code? Tnk1000.
User avatar
equinox
 
Posts: 118
Joined: Tue Jan 29, 2008 3:38 pm
Score: 0 Give a positive score

Re: Help with Destroy actor

Postby makslane » Tue Mar 03, 2009 1:02 am

Try:

Code: Select all
actors[i].HP = -1;
Index.textNumber = actors[i].HP;
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: Help with Destroy actor

Postby equinox » Tue Mar 03, 2009 1:11 pm

Yes!!! This work!!

Tnk1000.
User avatar
equinox
 
Posts: 118
Joined: Tue Jan 29, 2008 3:38 pm
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron