Page 1 of 1

I'm missing...

PostPosted: Sun Apr 26, 2009 11:05 am
by futuro
Help, I'm missing with this:


Code: Select all
if (Juan == 4)
{
    Juan = 1;
}
switch (Juan)
{
   case 1: DestroyActor("uno");
        CreateActor("pelota", "black_ball", "(none)", "(none)", -200, 0, true);
        break;
   case 2: DestroyActor("uno");
        CreateActor("pelota", "black_ball", "(none)", "(none)", 0, 0, true);
        break;
   case 3: DestroyActor("uno");
        CreateActor("pelota", "black_ball", "(none)", "(none)", +200, 0, true);
}



I want now that ''pelota'' destroy in 0.5 seconds...

How I can?

when I choose create actor ''pelota'' -> create timer--> ''timer_one'' (0.5seg)
and choose timer---> ''timer_one'' ----> destroy actor...

what hapend? NATHING...

Re: I'm missing...

PostPosted: Sun Apr 26, 2009 11:32 am
by skydereign
It should work. If trying again does not work, make sure you are setting the timer correctly. Also, make sure pelota is created.
Timer settings should be as follows, assuming that pelota is creating the timer.
Event Actor
name(Periodic, 50ms, 1 times)

Re: I'm missing...

PostPosted: Fri May 15, 2009 3:23 pm
by futuro
is for a pinball :lol: