Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / pause after sprite spawns

Author
Message
seppeEnZigie
7
Years of Service
User Offline
Joined: 9th Apr 2012
Location:
Posted: 13th Apr 2012 20:23
Hi im making a 2d shooter and i need a little bit of delay between the zombies to so i made this code but it doesn't work because the hole game slows down
here is the code:

I hope someone can help me
thanks

hello my name is zigie
Mister Fuzzy
8
Years of Service
User Offline
Joined: 27th Feb 2011
Location: XNA
Posted: 14th Apr 2012 23:33
dbWait() pauses the WHOLE game - no more commands are proccessed while the system is waiting. If it's a spawn delay you want, use a integer timer, that goes up by ONE every loop. When the value is equal to something (like 500), spawn a zombie and reset the timer to zero (Even though I said "timer," don't assume that you should use dbTimer(): That is completely different.).

ALIEN(S)!!!!!!!!1!! (and sausages)
seppeEnZigie
7
Years of Service
User Offline
Joined: 9th Apr 2012
Location:
Posted: 15th Apr 2012 01:48
Quote: "dbWait() pauses the WHOLE game - no more commands are proccessed while the system is waiting. If it's a spawn delay you want, use a integer timer, that goes up by ONE every loop. When the ..."

Oh oke
and I know what you mean with timer im not that stupid
thanks man!

hello my name is zigie

Login to post a reply

Server time is: 2020-02-20 08:46:13
Your offset time is: 2020-02-20 08:46:13