Destroy actor on timer

Non-platform specific questions.

Destroy actor on timer

Postby paperboy321 » Fri Jul 24, 2009 12:00 pm

I need an actor to get destroyed after the timer is up (6000 ms)
I tried doing this: Add<Timer(destroy_it)<Destroy Actor(event actor).
And the timer's settings are: Periodic, 6000 ms, 1 times.
And basically the actor I want to destroy ends the game, so I only want it to go off once.

It looks ok to me, what am I doing wrong?
PaPeR BoY
User avatar
paperboy321
 
Posts: 67
Joined: Mon Jun 09, 2008 11:08 pm
Score: 0 Give a positive score

Re: Destroy actor on timer

Postby sirmashni1 » Sun Jul 26, 2009 7:47 pm

hi, i'm not very good in english i did 2 exemple. :D
sirmashni1
 
Posts: 18
Joined: Fri Mar 20, 2009 6:47 pm
Score: 0 Give a positive score

Re: Destroy actor on timer

Postby sirmashni1 » Sun Jul 26, 2009 7:49 pm

lol i cant add the file...
sirmashni1
 
Posts: 18
Joined: Fri Mar 20, 2009 6:47 pm
Score: 0 Give a positive score

Re: Destroy actor on timer

Postby sirmashni1 » Sun Jul 26, 2009 8:02 pm

well to destroy the actor when timer is finish:

(on actor)add->draw actor->script editor->

if(transp=0)
{
CreateTimer("Event Actor", "timer1", 6000);
}

(on actor)add->timer->timer1(periodic, 6000 ms, 1 times)->add action->script editor->

transp=1;
sirmashni1
 
Posts: 18
Joined: Fri Mar 20, 2009 6:47 pm
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron