delete topic plz

Talk about making games.

delete topic plz

Postby stevenp » Tue Jan 01, 2008 1:54 pm

delete topic plz
Last edited by stevenp on Tue Jan 22, 2008 1:56 am, edited 1 time in total.
User avatar
stevenp
 
Posts: 403
Joined: Sat Dec 22, 2007 12:49 pm
Location: canada, ontario
Score: 16 Give a positive score

Re: problem deleting timer events, and...

Postby Freddy » Tue Jan 01, 2008 4:34 pm

To answer your question, can you delete a timer event, there is a way to make it so that if whatever happens that needs to destroy it, it will. Here it is:
Go to timer-> (whatever your timer is)-> script editor:
if(destroytimerevent = 0)
{
somevariable = 1; //or something that you want to happen when the timer is working
}

The destroytimerevent variable could be changed easily, so say if you do something like destroy another actor before the timer runs out, you could make the destroytimerevent variable to one. If you did, then the timer event would not happen, because the variable was not equal to 0. :D
Hola
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score

delete topic plz

Postby stevenp » Tue Jan 01, 2008 6:36 pm

delete topic plz
Last edited by stevenp on Tue Jan 22, 2008 1:55 am, edited 1 time in total.
User avatar
stevenp
 
Posts: 403
Joined: Sat Dec 22, 2007 12:49 pm
Location: canada, ontario
Score: 16 Give a positive score

Re: problem deleting timer events, and...

Postby j2graves » Tue Jan 01, 2008 7:37 pm

I just know that there is a way to stop a timer. I've used it myself!
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron