Animation stopping

This forum is currently in read-only mode.
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • I am making my own platform engine and am having some trouble with the animation. Seems that all animations must loop. The jumping animation did not loop and when I landed all other animations played only frame 1. If all animations loop this is not a problem. Anyone know a workaround for this?

  • Have you tried adding a "Play Animation" event to the landing?

    Failing that, you could just add a lot of frames identical to the last frame of the jump animation (I presume it's falling) so it doesn't loop back. But that has its own problems.

  • I've read and re-read your post and I'm afraid I still don't understand it. It's worded a little confusingly.

    Are you saying that when you jump, your animations stop looping/playing?

    The only thing I can think of off the top of my head without a better explanation is you might be setting your animations to frame 1 every cycle. Add a "Trigger once while true" condition to your set animation frame/play animation actions.

    If that has nothing to do with your problem, could you explain what's happening in better detail?

  • To clarify. Whenever I use an animation that does not have looping and that animation has played through, all the other looping animations only play the 1st frame of their animation. I have tried to add a play current animation which only seems to repeatedly restart the animation playing to the 1st frame as well, thus creating the exact same problem.

    The only real solution would indeed be to either have 2 animations for jumping. One that changes to the other one at a certain frame, and one with only 1 frame that loops.

    Or as you said to have loads of identical frames after each other.

    However, Ashley said the animation system is getting a fix soon so I guess I'll make an auxillary solution and then fix it when I can:)

  • To clarify. Whenever I use an animation that does not have looping and that animation has played through, all the other looping animations only play the 1st frame of their animation.

    Ah, I see. I myself am unable to recreate this problem so I suspect it's an issue with your code. If you'd like to post the .cap I can take a look at it.

  • Ok. I have recreated the problem in this file. Turning on looping in the animation jump fixes the stopping of the other animations.

    Forgive the coding, it's the first time I use this program

    And also another strange thing. When scrolling the platforms seem to separate at some times. There are small spaces between them, when the scrolling stops though it goes back to normal. Just noticed that now. I'd be glad if you'd take a look at it.

    http://www.forgotten-archive.com/roti/p ... ngine5.cap

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yep, as I thought, it was a Trigger Once issue. I ran into the exact same problem when I did my animation routines. Here's the fix:

    <img src="http://i38.tinypic.com/2jg494i.png">

    Works fine this way, without having to set the jump animation to loop.

  • Thanks a million. That saved my day

  • No prob. By the way, the project is looking pretty sweet. I can't wait to play it

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)