Timer question

Game Editor comments and discussion.

Timer question

Postby Clokio » Mon Jun 20, 2011 9:25 pm

I have my ged, I want to collide in a wall, then wait 1 sec and the wall disappear.
Attachments
GameEditor.zip
(218.18 KiB) Downloaded 77 times
Clokio
 
Posts: 229
Joined: Tue May 17, 2011 2:18 pm
Score: 32 Give a positive score

Re: Timer question

Postby schnellboot » Mon Jun 20, 2011 9:27 pm

here
Attachments
demo.zip
(220.07 KiB) Downloaded 79 times
Last edited by schnellboot on Mon Jun 20, 2011 9:33 pm, edited 3 times in total.
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: Timer question

Postby skydereign » Mon Jun 20, 2011 9:30 pm

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

Re: Timer question

Postby Clokio » Tue Jun 21, 2011 1:41 am

Thanks :)
Clokio
 
Posts: 229
Joined: Tue May 17, 2011 2:18 pm
Score: 32 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest