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 / dbSpriteExist problem

Author
Message
american eagle
17
Years of Service
User Offline
Joined: 2nd Aug 2007
Location:
Posted: 3rd Feb 2011 23:30

it makes i go suddenly from 0 to 301!!!
when i remove dbSpriteExist the i counts as normal

anyone with a clue about this?
Mireben
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 4th Feb 2011 20:01
Start the loop from 1, not from 0. Zero is not a valid identification number for any object, so dbSpriteExists returns an error code. It's a known bug in Dark GDK that error codes are written into the first few bytes of the stack, changing the value of the first variable in scope. (To avoid this, you can also define a dummy integer variable at the beginning of your main function.)

Login to post a reply

Server time is: 2024-11-19 14:32:50
Your offset time is: 2024-11-19 14:32:50