[iOS] Switching Animation Bug

Dom818

  • *
  • Posts: 1296
I have a simple script, if the animation of an actor equals one thing, switch to the second animation, otherwise, switch to the first animation. That script is run when a box is tapped. The problem is, when the animation switches, the game crashes. I tried drawing the animation name and a split second before the game crashes, it draws some weird text.

In the photo below, the top box is supposed to be switching to animation R, but it is showing the X and Y coordinates of something. The box below is showing animation G, like it is supposed to.

What is going on with this? Please help!

Edit: This glitch also happens when going from R to G animation.

« Last Edit: May 05, 2012, 11:32:46 am by Dom818 »

kiwixoats

  • Posts: 104
This happens to me too even on stencyl 2.1 ..

Hi Dom, can you post the behaviour please?

Dom818

  • *
  • Posts: 1296
Hi Dom, can you post the behaviour please?

You can actually make the behavior (It is very simple). Make a "When Created" event, put a "do after [1] seconds" block, and a "switch animation to [any other animation]" block. Whenever I do this, the app freezes and eventually crashes.