Hello
Guest
, please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length.
ZFGC
>
Resources
>
Coding
>
Is sleep[milliseconds] supposed to do this?
« previous
next »
Pages: [
1
]
Go Down
Print
Author
Topic: Is sleep[milliseconds] supposed to do this? (Read 1144 times)
0 Members and 1 Guest are viewing this topic.
Koh
Is sleep[milliseconds] supposed to do this?
«
on:
January 15, 2007, 02:01:02 pm »
Tamer Koh
Reputation: +6/-0
Offline
Gender:
Posts: 980
When I used sleep, the whole game froze during the sleeping. Is is supposed to do that?
«
Last Edit: January 15, 2007, 02:39:28 pm by dlbrooks33
»
Logged
Windy
Re: Is sleep[milliseconds] supposed to do this?
«
Reply #1 on:
January 15, 2007, 02:11:51 pm »
Reputation: +0/-0
Offline
Posts: 2245
yes, that's what it does.
Logged
Koh
Re: Is sleep[milliseconds] supposed to do this?
«
Reply #2 on:
January 15, 2007, 02:27:24 pm »
Tamer Koh
Reputation: +6/-0
Offline
Gender:
Posts: 980
how do you wait for awhile then without freezing the whole game and without using alarms?
Logged
Dayjo
shut the fuck up donny.
Re: Is sleep[milliseconds] supposed to do this?
«
Reply #3 on:
January 15, 2007, 02:35:42 pm »
hungry..
Reputation: +0/-0
Offline
Gender:
Posts: 3602
What language / tools are you talking about? Please use the topic icons provided and / or state which language or development tools you're using in your Topic title. How do you expect people to be able to give you specific help?
Logged
www.dayjo.org
Koh
Re: Is sleep[milliseconds] supposed to do this?
«
Reply #4 on:
January 15, 2007, 02:39:18 pm »
Tamer Koh
Reputation: +6/-0
Offline
Gender:
Posts: 980
Game Maker 6
Logged
Windy
Re: Is sleep[milliseconds] supposed to do this?
«
Reply #5 on:
January 15, 2007, 02:41:20 pm »
Reputation: +0/-0
Offline
Posts: 2245
you could use a variable that captures the system time and every frame check if enough time has passed
Logged
mit
Re: Is sleep[milliseconds] supposed to do this?
«
Reply #6 on:
January 15, 2007, 03:52:54 pm »
QBASIC programmer since age 4. Take that, world.
Reputation: +0/-0
Offline
Posts: 1079
What's wrong with using alarms? It's what they're there for.
And yeah, if you do it windy's way, you need to use the variable
current_time
Logged
Programmer / Spriter / Level designer / Game Director / Web Designer / Music Sequencer
for
Random Highscore table:
Play the
Kousou Arcade
today!
Print
Pages: [
1
]
Go Up
« previous
next »
ZFGC
>
Resources
>
Coding
>
Is sleep[milliseconds] supposed to do this?
Contact Us
|
Legal
|
Advertise Here
2013 © ZFGC, All Rights Reserved
anything