How can I synchronize animations in 8-way behavior?

Get help using Construct 2

Post » Mon May 01, 2017 1:29 pm

Hello! My english isn´t the best, but I´m going to try :D.

I'm trying to create a character in isometric view. I do not know if anyone can help me with two issues. The control of the character is with the pad of xbox. And basically everything works correctly. But I'm trying to debug the handling and there are things I do not know how to do. I use 8-way behavior.

1.- My main problem is with animations. Each time I change direction, the character animation starts from frame 0. Is there any way that if I do not stop moving, when I change direction, the animation of the character starts from the corresponding frame?

2. At the end of the movement, the character skates before stopping. I want it to stop suddenly. I have played with the decelerate, both at 0 and high numbers, but I see that he does the same thing all the time. Is there a way to stop suddenly without decelerating effect?
Last edited by ingumak on Mon May 01, 2017 2:09 pm, edited 1 time in total.
Posts: 19
Reputation: 695

Post » Mon May 01, 2017 1:39 pm

Edit your title to be more question specific to get the most views of people that may be able to help you.

For your first issue you will need to track what frame your player is on by grabbing it when the button is no longer pressed. You will need to then set the new animation frame to that variable value (assuming they match) when the player changes direction and then play from current.

As for the stopping, have you set the deceleration value really high? Set it to like 1000+ and see if it does what you want.
You may end up having to make a custom movement or using an event that disables 8-way and then stops character before enabling again.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
Posts: 637
Reputation: 9,370

Post » Mon May 01, 2017 2:28 pm

Hello! Thanks for the reply! Sorry for the title!! I have changed. I have completely forgotten.

All right. Now the variable keeps the frame in which the animation is. But I can not find the way for an animation to restart from the frame I want. I have tried with "current frame" and "set frame" but I think I do not understand how they work.

In the second question, I have tried up to 6000 deceleration. But nothing. I suppose the problem will come from elsewhere. Because that, should it work, right?
Posts: 19
Reputation: 695

Return to How do I....?

Who is online

Users browsing this forum: evillair, Solomon, vankizzle and 7 guests