Hi, all.
Not sure what I'm doing wrong.
Doing a first player death sequence on collision with sprite and it works fine for the most part, but occasionally glitches twice.
--
player-on collision with - set to player death animation
wait 1.0 seconds
player - set animation default
player - set position x y
--
I tried it also with destroying the player and then system create object again, but it does glitch again when it falls occasionally.
The player spawn sequence is the default from the Scirra template (if player is outside layout, move player to position x).
The glitching is the player occasionally falling twice.
Anybody saw this, solved it?
Why does it happen?
What's the proper coding sequence?
--
I added the collisions enabled as second flag as recommended by a you tube video (seems better), but still glitches occasionally (falls twice).
--
there is the destroy player - restart layout alternative (only foolproof one?) but I wanted to do it without spawning the layout again (or saving the previous one).
--
putting everything in a function but but the switching of animation seems to make it glitch the least (like 1 out of 20 tries), but if anyone has a foolproof solution, would very much appreciate it.
and it seems to happen mostly when holding a key - like simulate platform pressing left etc.
--
could it be because the player is colliding with an animated object - 2 frames? and the collision condition only specifies the 1st frame? don't think so.