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

Author
Message
bolevole
6
Years of Service
User Offline
Joined: 29th Aug 2013
Location:
Posted: 13th Sep 2013 20:35
I trying to make some kind of Tank game. I managed to program movement and bullet sprite creation. If bullet after certain time does not hit anything it should disappear. dbDeleteSprite should do that. But that function somehow modifies my bullet variable which is sprite ID. On First run that variable has value of 2. After pressing W key Sprite is created and it moves. After Deleting Sprite bullet variable has value of 302 instead of 3. If I delete "dbDeleteSprite" from code everything works normally.

This Happens:

Uploaded with ImageShack.com


If i delete dbDeleteSprite function:

Uploaded with ImageShack.com

which is normal


Is this bug in library or what?

Here is Full Code:




Login to post a reply

Server time is: 2019-09-18 12:31:38
Your offset time is: 2019-09-18 12:31:38