Ansca staff - Build 824 messes up my animation engine...

Hi, first of all - I can’t file this as a bug since the fact that I can’t upload larger projects. And it is to hard to create a isolated sample project to upload.

Anyway, my animation engine has worked for over four months but width build .824 everything gets messed up. I think I know where the problem could be located - but I am not sure what to look for?

I do need someone from Ansca to look at my project and see the difference between 821 -> 824. How should I do?

It could be this code snippet that clears my animation, that doesn’t work with .824

for check = 1, container.numChildren do  
 local semiChild1 = container[check]  
 for kk,vv in pairs(data) do   
 local found = false;  
 for ii = 1, animalAnim[activeAnim].layers, 1 do  
 if(vv[animalAnim[activeAnim].frames\*ii].img==semiChild1.name) then   
 found = true  
 break;  
  
 end  
 end  
  
 if(found==true) then  
 semiChild1.isVisible = true;  
  
 else  
 semiChild1.isVisible=false;   
 end  
 end  
end  

This snippet runs through a group with graphics to see if they should be reused in the next animation. If not, then make them invisible.

Joakim
[import]uid: 81188 topic_id: 27136 reply_id: 327136[/import]

Hey, Joakim, if your problem is directly related to .isVisible property of sprite, then it may have something to do with a bug that’s been filed. See Danny’s note here:

https://developer.anscamobile.com/forum/2012/05/31/sprite-listener-function-not-umfunctioning#comment-109667

Naomi [import]uid: 67217 topic_id: 27136 reply_id: 110306[/import]

Great, that could be the case.

I will try to set the alpha=0 instead and then I know for sure whats going on!

Thanks, Joakim [import]uid: 81188 topic_id: 27136 reply_id: 110309[/import]

setting the alpha instead will get you around this issue for the time being :slight_smile: [import]uid: 84637 topic_id: 27136 reply_id: 110310[/import]

Yepp, it did work with alpha instead of isVisible - so it was related to bug #14555.

Thanks Naomi!

Joakim [import]uid: 81188 topic_id: 27136 reply_id: 110423[/import]

Have the same issue, kludge with alpha property works now, but it puts some limitations to my code )= [import]uid: 131398 topic_id: 27136 reply_id: 110480[/import]