I'm missing...

Game Editor comments and discussion.

I'm missing...

Postby futuro » Sun Apr 26, 2009 11:05 am

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...
alguien que hable mi idioma ÑñÑñÑñ
User avatar
futuro
 
Posts: 37
Joined: Mon Apr 13, 2009 1:22 pm
Score: 0 Give a positive score

Re: I'm missing...

Postby skydereign » Sun Apr 26, 2009 11:32 am

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)
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: I'm missing...

Postby futuro » Fri May 15, 2009 3:23 pm

is for a pinball :lol:
alguien que hable mi idioma ÑñÑñÑñ
User avatar
futuro
 
Posts: 37
Joined: Mon Apr 13, 2009 1:22 pm
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron