How do you use timers?

Non-platform specific questions.

How do you use timers?

Postby poopbrigade » Wed Sep 02, 2009 9:36 am

:shock: Help pleaze!!!(>,<) :o



can anyone help me with a timer code that starts when HP==0, then creates an actor named "player" after the timer ends.

hehehe I can't underSTAND timer event I can only underSIT it.
(>,<)so0O Corny.

:mrgreen: Thanx in advance. :mrgreen:
When life gives you oranges, make orange juice. When life gives you poop, make fertilizer not poop juice.

Image
Current project __ CorPsEdEaRtH
Estimated work done __ 12%
User avatar
poopbrigade
 
Posts: 129
Joined: Thu Aug 27, 2009 12:17 pm
Location: In Earth. Being Burried XD
Score: 46 Give a positive score

Re: How do you use timers?

Postby Hblade » Wed Sep 02, 2009 1:13 pm

Make your timer first, remember that the waiting time is in miliseconds. Now, go to Events - Add - Timer - Select your timer - Then create actor :D. To make a timer, go to your player and go to draw actor, then say this
if (hp == 0)
{
CreateTimer("Event Actor", "Timer1", 140);
}
there you are :D Enjoy
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: How do you use timers?

Postby poopbrigade » Thu Sep 03, 2009 2:08 am

(>,<)Tnx a lot.
It worked!!!

:wink:



:D
When life gives you oranges, make orange juice. When life gives you poop, make fertilizer not poop juice.

Image
Current project __ CorPsEdEaRtH
Estimated work done __ 12%
User avatar
poopbrigade
 
Posts: 129
Joined: Thu Aug 27, 2009 12:17 pm
Location: In Earth. Being Burried XD
Score: 46 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron