Animation problems

This forum is currently in read-only mode.
From the Asset Store
4 Block Soldiers with different animations, 400x400
  • It seems like tagging is completely broken. It doesn't matter which version of Construct I use, it just never works. I tagged my stopped animations as stopped and my walking animations as walking and it does nothing.

    So, instead I set it so the events trigger the animations.

    I finally managed to get everything running smoothly as possible with the correct animations playing and everything and now I've run into another problem.

    When pressing diagonals (up/right, up/left, down/right, or down/left) the running animation plays fine, yet when it stops, it doesn't play the diagonal stopped animation.

    Instead, it uses only the up, down, left, or right stopped animations.

    I don't want to make it so the player can only face diagonals while moving as that will make combat really annoying (I might turn this into a Zelda-like engine).

    Here is the cap file (uses the latest unstable build (by accident really, whoops)):

    http://machriderx.googlepages.com/RPG.cap

    As you can see, when you move diagonally, you can't really stop diagonally.

    If anyone knows how to fix this, I would appreciate it.

  • I'm not on my Construct computer at the moment but I'm guessing that the issue has to do with the fact that you aren't really letting go of both keys on the exact same tick. So the animation is being set to whatever key you had pressed last, even if it was just for a millisecond or so.

    If that's the case then you might try a timer of sorts. If one key is let go, then the timer starts, and when the timer is done counting down it checks to see if the other key has also been let go. Then, if no other keys are being pressed, set the animation to the proper angle.

    The timer doesn't have to be very long, just a fraction of a second.

  • if it's this, the other day I was just pondering if there was a nice, comfortable solution for this.

    I've seen even commercial games make this mistake and anything I can think of so far is cumbersome (say, you want something to happen when 3 buttons at the same time? that'd be 9 events)

    Perhaps a finite state machine would help, come to think of it....

  • This is frustrating me to no end. I thought I fixed it, yet I now have the same problem but in reverse!

    Now the sprite keeps stopping at diagonals when I don't want it to.

    Try this cap, hold the down key then try going right. It keeps going to the diagonal, even long after you stopped pressing down and are simply pressing right, or vice versa.

    http://machriderx.googlepages.com/RPG2.cap

    It must be a simple mistake I'm making, yet I can't figure it out at all.

  • Works perfectly for me on 0.99.4

    What version of Construct are you using?

  • Works perfectly for me on 0.99.4

    What version of Construct are you using?

    The same version as you are.

    What I am witnessing is very subtle, so perhaps I didn't describe it very well. Let me clarify.

    Try moving left then press down and keep walking down. When you let go, the character faces the diagnonal, not down. This is not what I want.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I figured it out. I was just being stupid and over complicating things, like I always do. Like that one time I argued with deadeye about how to make a grid movement, anyway nevermind that.

    I decided to start over from scratch. After brainstorming and actually using my head, I figured out a way to do this in only 2 events, completely eliminating most (if not, all) the problems I had before.

    So anyway here it is, my new and improved engine:

    http://machriderx.googlepages.com/RPG3.cap

  • [quote:8yaj7zl0]Like that one time I argued with deadeye about how to make a grid movement, anyway nevermind that.

    At first I was like "argued about what?" I had to actually look this up because I had no idea what you were talking about. Man, that was over a year ago!

    Anyway, glad to hear you got this all sorted out

  • What I did was holding a direction, then tapping the orthogonals alternatively without letting go the original direction. The animation went how its supposed to go, doing the diagonals and then going back to the initial direction. Also tried doing circles, went perfectly.

    Didn't see any weirdness at all, checked thrice :s

    I'll check again. Maybe I missed it, though that would be weird.

  • [quote:28su5mtk]Like that one time I argued with deadeye about how to make a grid movement, anyway nevermind that.

    At first I was like "argued about what?" I had to actually look this up because I had no idea what you were talking about. Man, that was over a year ago!

    Anyway, glad to hear you got this all sorted out

    i was just kidding, making a self-referential joke. But I do have a habit of not getting it the first time though. anyway thanks again for the help. I appreciate it.

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