Little problem with animations
In my game my character has many animations, stopped/walking/running/ducking/landing/and about 20 other user animations. My problem is that whenever the character is going from landing to walking, or turning to running, ect. it always plays the stopped animation for a split second inbeteen animations. Even if I am holding left or right while landing, the character still flickers over to the stopped animation before going to the walk animation, and it looks pretty buggy :\ I use the PMO, and set stopped animation with:
If object is on the ground
X-If object is moving
If there is no joystick action
If none of the other animations are playing
Then change animation sequence to stopped.
For some reason "If animation is not playing" doesn't seem to be doing the trick.
What would some of you do to play the stopped animation without it interfering with other animations?
Re: Little problem with animations
I did a lot more simply than that. Basically, I have it so that if the object is standing on the ground, X-If Object is Moving, and object is facing right, play Stopped 1, and I have another Stopped animation for if the player is facing Left.
Unfortunately I am having a similar problem for attacking. It plays one frame of the animation and then goes back to stopped. I am going to have to adjust my Stopped event for checking the attack counter.
Re: Little problem with animations
You could try to force the animation to change when the previous animation is at a specific frame. So, for example, if you are landing:
+Player Y = 0 (or whatever is your ground)
+Landing Anim is playing
+Animation frame = (last frame of animation)
+Player is pressing direction (or however you are doing input)
-Change Animation to Walking
-Force Frame to 0
-Restart Animation
You might even be able to do it without the last 2 actions, but I generally use them just in case. Sadly, you might need to make special case code to handle every transition (land to walk, land to run, etc...) but you can copy/paste to save time.
Hope that helps,
Mobichan
Re: Little problem with animations
Sorry to bump such an old post, but I never figured out how to fix the above problem :\
mobichan, I tried your idea with forcing the animation, but that doesn't seem to work. For example if my character is slashing and I hold right, he should goto the walking animation when slashing is almost over, not stopped then walking, so I tried this:
Repeat while pressing Right
Animation slash is playing
Animation Frame is equal to 8
-Change animation to walking
Logically that should work but it doesn't do anything. Any ideas?
Re: Little problem with animations
Well I had a problem like this and I had to just do Change animation sequence to my anim, set frame to one (0), and then restore animation. I had to do this on ally my changing of animations.