Not in the game but here.]
In your spin attack.
Please tell me the problem @Muzan
Please write in a clear way
I have just created the third point i.e. HitPoint but not used it
Make sure that there are no any events that change you Player’s position
These are the only events I have created till now
I spotted it. It is a problem with your animation.
Look here, in your animation, it goes to the front and after the animation finishes, it changes to the idle animation which is in the middle.
I deleted the last event -
But still there is problem-

Here when I press x key it performs spin attack animation but after finishing the animation when I press the right or left arrow key to move , the player first go a little back then forward
Let me explain you clearly:
In your first animation, you are in the center. And in your second animation, you are in the front, but when you change from the second animation back to the first animation, you will go back to the center and that’s what is happening. Now, there are some workaround to this problem:
- Change the origin point only of that animation
- Do the following:
Add an event and in that event, add a new condition that says, the “spin_attack” animation of Player is finished. Now make its child event, and add a condition that says, if Player is Flipped, then in that event, add an action: Change the X position of Player - (the amount of Pixel that player moves while doing spin attack).
Now, add another child event of the previous event
Add an event and in that event, add a new condition that says, the “spin_attack” animation of Player is finished
that says, If Player is flipped (inverted), Change the X position of Player + (the amount of Pixel that Player moves while doing spin attack)
how can I know that what is the the amount of Pixel that player moves while doing spin attack
Count it frame by frame, or put some random numbers until you get your ultimate number.
and to what position should I change the origin point
Better not do this cause this may bring more errors.
ok , just wait for 5 minutes
@abc Is it fixed? (filling space)