After creating 4 sets of imposter based on sprites, i set up the script to locate them, then hide them during initialization .
Then when a button is pressed, the specified sprite imposter is shown and animated.
Problem is the imposter sprites weren't all being hidden.
So i've spent a couple days now playing with my script, trying to figure out why this one sprite out of 4 wouldn't hide and show properly. ( the other 3 worked with the same script!)
I started to think the project was damaged in some way.
Well it turns out, the issue is the commands
iObjectImposterHide(OBJ_X,int)
iObjectImposterShow(OBJ_X,int)
don't work properly with animated sprites.
At first, i configured the program to use animated sprites, but then realized imposter commands can't control frames individually of an animated sprite.
So i separated the sprite frames into their own sprite objects, then created the imposters form them.
My issue was i forgot to separate this one sprite, which as it turns out, is the sprite showing the hide / show issue.
Now that this one sprite is NON FRAME ANIMATED, the imposter hide / show command works as expected.
Personally, i consider this a bug with 3drads handling of animated sprites, unless of course there is mention of this somewhere that i missed.
Then when a button is pressed, the specified sprite imposter is shown and animated.
Problem is the imposter sprites weren't all being hidden.
So i've spent a couple days now playing with my script, trying to figure out why this one sprite out of 4 wouldn't hide and show properly. ( the other 3 worked with the same script!)
I started to think the project was damaged in some way.
Well it turns out, the issue is the commands
iObjectImposterHide(OBJ_X,int)
iObjectImposterShow(OBJ_X,int)
don't work properly with animated sprites.
At first, i configured the program to use animated sprites, but then realized imposter commands can't control frames individually of an animated sprite.
So i separated the sprite frames into their own sprite objects, then created the imposters form them.
My issue was i forgot to separate this one sprite, which as it turns out, is the sprite showing the hide / show issue.
Now that this one sprite is NON FRAME ANIMATED, the imposter hide / show command works as expected.
Personally, i consider this a bug with 3drads handling of animated sprites, unless of course there is mention of this somewhere that i missed.