Page 1 of 1
creating a delay before going to a new level
Posted: February 7th, 2012, 4:07 pm
by lzilberm
Hey everyone!
I was wondering if someone may be able to help with an issue I've been having. I've created a game with different levels, and getting to a certain point within the map takes you to a new level. However, I need the game to pause for two seconds before actually going to the next level. If anyone knows how to do this...it would be awesome! Thanks everyone!
~~lzilberm
Re: creating a delay before going to a new level
Posted: February 7th, 2012, 4:54 pm
by arcones
The FPS command is:
Place that in your code with the proper number and you should be good to go.
If it's RPG, I'm not sure what the command is.
Re: creating a delay before going to a new level
Posted: February 7th, 2012, 5:01 pm
by lzilberm
Thanks arcones!
When you say "proper number," what does that number refer to? The number of seconds?
~~lzilberm
Re: creating a delay before going to a new level
Posted: February 7th, 2012, 6:50 pm
by arcones
Yes, although it's not seconds per say. If you did:
That might do the trick (it might be in milliseconds, I don't remember).
Re: creating a delay before going to a new level
Posted: February 14th, 2012, 2:32 pm
by lzilberm
Thanks a ton!!

Re: creating a delay before going to a new level
Posted: February 15th, 2012, 10:47 am
by kddekadenz
That might do the trick (it might be in milliseconds, I don't remember).
Yes, it is in miliseconds.
If it's RPG, I'm not sure what the command is.
It's the same.
Re: creating a delay before going to a new level
Posted: March 5th, 2012, 3:48 pm
by lzilberm
Hey everyone...I still haven't gotten this to work...if anyone has any knowledge about this...your input is much appreciated!

Re: creating a delay before going to a new level
Posted: March 5th, 2012, 7:54 pm
by chocolatepie33
to add onto arc's code:
Code: Select all
level_trigger_# = [
sleep 5000 ; sp {mapname}
]
Should be something like that. I think.
Re: creating a delay before going to a new level
Posted: March 28th, 2012, 8:01 am
by Leo_V117
To fix that code:
Code: Select all
level_trigger_# = [
sleep 5000 [
sp {mapname}
]
]
Re: creating a delay before going to a new level
Posted: March 28th, 2012, 8:31 pm
by chocolatepie33
is that how the sleep command works? It executes something once the wait is over? didn't know that.