Im not sure I understand what you are trying to achieve..

Are you trying to animate a sprite, that is behind a panel?

Panels are generally fixed to the camera, where sprites are placed inside the virtual realm of awesome.

Thus, this creates it so that your sprite will be behind the panel.
What you need to achieve is either a loop which controls the panel you are trying to animate, and each frame (or however often it changes) have it change to the next animation, looping itself.

Code:
function animate_panel(){
if(panel_number == 0) reset(panel4, SHOW);set(panel1,SHOW);return;
if(panel_number == 1) reset(panel1, SHOW);set(panel2,SHOW);return;
if(panel_number == 2) reset(panel2, SHOW);set(panel3,SHOW);return;
if(panel_number == 3) reset(panel3, SHOW);set(panel4,SHOW);return;
}



Im sure there is a better way to do this, but this is an idea for you to try laugh

I Really hope this is the answer you were looking for wink


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com