Game Development Community

2D AnimatedSprites Dont Show Up In-Game.

by Jack-S- · in iTorque 2D · 02/06/2012 (10:59 am) · 3 replies

Hi, I have been using some 2d animated sprites for my character health bars however when I go to run the game the animated sprites dont show up what so ever. I have them added to the levels datablocks, I have also checked the levels dataBlocks manually and can find no errors. I have looked into the console and get this message.

t2dAnimationDatablock::onAdd() - ImageMap Datablock is invalid, cannot create animation! (UNKNOWN!)
data/levels/datablocks/multipleWaves_datablocks.cs (0): Register object failed for object greenHealthBarAnimation of class t2dAnimationDatablock.

I have found one thread that mentions this error but have absolutely no clue as to how to fix it.
Any help would be much appreciated.

#1
02/07/2012 (6:48 am)
It sounds like the animation datablock is being executed before the image map. Check the order in the level datablocks editor. If you see the animation first, remove it and then add it back so it will be in the right order.
#2
02/07/2012 (10:10 am)
@micheal - This seems to have fixed the problem. I placed the animation first into the level datablock before the actual image itself. thanks!
#3
02/07/2012 (10:51 am)
Glad I could help.