Game Development Community

Popping a GuiSprite lose it's image frame

by Jonathan Arsenault · in Torque 2D Beginner · 12/07/2013 (4:48 pm) · 1 replies

When popping a control containing GuiSpriteCtrl a call to ImageFrameProviderCore::clearAssets is made which reset the image frame to 0, resulting in the sprite frame being lost when later re-pushing the control.


example:

About the author

Made a small foray in the gaming industry working at Citeremis, worked and offered consultation in many other sector since, passing through casino management, the wood transformation industry and the transportation sector. Eat code for breakfast.


#1
12/09/2013 (5:44 am)
Hm, for a sprite I would expect this behavior. For a GUI control, not so much. I would definitely post it as an issue on the GitHub repo. It's likely a very quick fix.