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 / Deleting a sprite causing issues?

Author
Message
ManOfActionTM
12
Years of Service
User Offline
Joined: 16th May 2011
Location: Sahuarita, Arizona
Posted: 24th Nov 2011 07:26
Hello Everyone--

I'm getting a crash at agk::sync() and I think the following function is the problem:



We need certain sprites (not all) to maintain the same image number, even if we change the image. If we just do a loadimage, the game complains that the imagenumber is already being used. So I tried this solution, but this seems to not work either.
ManOfActionTM
12
Years of Service
User Offline
Joined: 16th May 2011
Location: Sahuarita, Arizona
Posted: 24th Nov 2011 08:37
For more information:

The crash actually occurs in this piece of code (in cspritemgr.h) on the else case.

ManOfActionTM
12
Years of Service
User Offline
Joined: 16th May 2011
Location: Sahuarita, Arizona
Posted: 24th Nov 2011 10:54
Actually, I take that back, it's crashing on the if statement, I read VS2010 incorrectly.
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 24th Nov 2011 17:40
Thanks, I'll get that fixed. Since you are in tier 2 you have the option of working around it by using the image pointer to load a replacement image.

Login to post a reply

Server time is: 2024-05-06 06:49:49
Your offset time is: 2024-05-06 06:49:49