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.

AppGameKit Classic Chat / [BUG] Crash with SetSpritePhysicsOff After Sprite Collision

Author
Message
Heavens
8
Years of Service
User Offline
Joined: 10th May 2015
Location:
Posted: 15th May 2017 22:11
With the latest update the app I am working on now crashes I have traced this to the command SetSpritePhysicsOff after the sprites have collided, below is some code that demonstrate this. This code has worked flawlessly until now.



It doesn’t matter if you turn off the physics of sprite 1 or 2 the result is the same, bug or am I doing something wrong?
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 16th May 2017 16:58
Thanks, fixed for the next version. For now you should exit or restart the loop after the call to SetSpritePhysicsOff, as this changes the contact list. Also you are missing a call to GetNextContact in your loop.

Login to post a reply

Server time is: 2024-03-28 20:23:16
Your offset time is: 2024-03-28 20:23:16