View previous topic :: View next topic |
Author |
Message |
MADSOFT Games Representing more than 80% of the internet!

Joined: 06 Nov 2004 Posts: 221 Location: AWESOME land
|
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Fri Jul 25, 2008 8:09 pm Post subject: |
|
|
you want set timer |
|
Back to top |
|
 |
MADSOFT Games Representing more than 80% of the internet!

Joined: 06 Nov 2004 Posts: 221 Location: AWESOME land
|
|
Back to top |
|
 |
TwinHamster ♫ Furious souls, burn eternally! ♫

Joined: 07 Mar 2004 Posts: 1352
|
Posted: Sat Jul 26, 2008 7:09 am Post subject: |
|
|
Speed refers to the rate that the 'Count' decreases in ticks.
So a speed of 16 (Roughly one second) means that your 'Count' will go down by one with each second. |
|
Back to top |
|
 |
MADSOFT Games Representing more than 80% of the internet!

Joined: 06 Nov 2004 Posts: 221 Location: AWESOME land
|
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Sat Jul 26, 2008 7:15 am Post subject: |
|
|
speed is the number of game ticks to count off.
If I wanted something to happen after 10 game ticks, I would probably write
Code: |
set timer(1, 1, 10, @something)
|
This would set up timer #1 to wait for one block of 10 ticks.
However, If I wanted something to happen after 60 seconds, I might write this:
Code: |
set timer(1, 60, 18, @something)
|
This would cause timer #1 to wait for 60 blocks of about 1 second (18 game ticks is one second)
Another way to think of it is: "count times speed equals total ticks to wait". |
|
Back to top |
|
 |
MADSOFT Games Representing more than 80% of the internet!

Joined: 06 Nov 2004 Posts: 221 Location: AWESOME land
|
Posted: Sat Jul 26, 2008 4:06 pm Post subject: |
|
|
James Paige wrote: | speed is the number of game ticks to count off.
If I wanted something to happen after 10 game ticks, I would probably write
Code: |
set timer(1, 1, 10, @something)
|
This would set up timer #1 to wait for one block of 10 ticks.
However, If I wanted something to happen after 60 seconds, I might write this:
Code: |
set timer(1, 60, 18, @something)
|
This would cause timer #1 to wait for 60 blocks of about 1 second (18 game ticks is one second)
Another way to think of it is: "count times speed equals total ticks to wait". |
Thanks! it's working perfectly! I used this for the day/night feature in Xerion. You can see it in the DEMO _________________ http://www.madsoftgames.net/
http://www.madsoftgames.org/
http://www.andrewdavid.net/ |
|
Back to top |
|
 |
|