Page 1 of 1

Timer question

PostPosted: Mon Jun 20, 2011 9:25 pm
by Clokio
I have my ged, I want to collide in a wall, then wait 1 sec and the wall disappear.

Re: Timer question

PostPosted: Mon Jun 20, 2011 9:27 pm
by schnellboot
here

Re: Timer question

PostPosted: Mon Jun 20, 2011 9:30 pm
by skydereign
Okay, first in your collision script where you have CreateTimer, use this.
Code: Select all
CreateTimer("Collide Actor", "test", 1000);

Two changes, one is that you are specifying Collide Actor, which means the wall you are colliding with. The second is that you had 10000 ms, instead of 1000, which means you'd have had to wait for 10 seconds.

Next in the wall's timer event, set it to destroy Event Actor, not wall. If you set it to wall, it could destroy all walls, not just the one you collided with (though in this example there is only one wall).

Re: Timer question

PostPosted: Tue Jun 21, 2011 1:41 am
by Clokio
Thanks :)