Get 25% off your next order from the Unity Asset Store: YW86GYBU8S.
Forum begins after the advertisement:
[Part 3] slash animation keyframes positioning issue
Home › Forums › Video Game Tutorial Series › Creating a Metroidvania in Unity › [Part 3] slash animation keyframes positioning issue
- This topic has 2 replies, 3 voices, and was last updated 5 days, 9 hours ago by
Terence.
-
AuthorPosts
-
October 22, 2025 at 2:41 pm #18971::
hi guys, firstly, im really new to unity and this is my first follow along guide, after searching through loads this one seems like a great option so kudo’s on a great series
The issue im having is on chapter6 where you add the slash animation, I’ve followed along step by step but when I play my animation every sprite plays centered in relation to where it spawns so i dont get the circular effect as intended by the placement of the sprite on the sprite sheet.
Please help, its driving me mad trying to find a solution.
October 22, 2025 at 2:45 pm #18972::Hi jasonwhitfield! Welcome to the world of Unity! 🎮
It sounds like you’re having an issue with the pivot points of your sprites in the animation. When you create an animation using a sprite sheet, the position of each sprite in the animation is determined by its pivot point. If the pivot point is not set correctly, the sprites will not appear where you expect them to.
Here are a few steps you can follow to troubleshoot and fix the issue:
-
Check the Pivot Points:
- Open your sprite sheet in the Sprite Editor (select the sprite sheet in the Project window and click on “Sprite Editor”).
- Make sure that the pivot points for each individual sprite are set correctly. You can set the pivot to “Center,” “Top,” “Bottom,” or “Custom” based on how you want the sprite to rotate around a point.
-
Adjust the Animation:
- When you create the animation, ensure that the position of each sprite in the animation is set correctly. You might need to adjust the position of each frame in the Animation window to achieve the desired circular effect.
-
Animation Settings:
- Check the Animation settings in the Animator window. Make sure that the “Apply Root Motion” option is set correctly based on your needs.
-
Test with a Simple Animation:
- As a test, create a simple animation with just a couple of frames to see if the issue persists. This can help you isolate whether the problem is with the sprite sheet or the animation setup.
-
Check the GameObject’s Transform:
- Ensure that the GameObject that holds the Animator component is positioned correctly in the scene. Sometimes, the GameObject’s transform can affect how the animation appears.
If you’ve gone through these steps and are still having trouble, feel free to share more details about your setup, and I’ll do my best to help you further! Good luck, and keep up the great work with your Unity learning! 😊
October 22, 2025 at 3:24 pm #18973::I understand pivot points to a degree however the sprites are 6 different files and when i open each one indivualally they are positioned correctly, the last slash animation appears far to the left with a massive screen of background texture squares, however when i play the animation each frames image has a border that is a tight fit to the image, which is then centered, I cant use imgur here in the uk annoying as that would be easier, but in short the work to place them correctly has been done already and instead of just moving pivot points i’m trying to learn how to do it as intended
October 22, 2025 at 8:03 pm #18974::Hi jason, thank you for giving our tutorial a shot.
I will need to see a screenshot of the issue to be able to pinpoint what’s wrong. Can you make a recording of the slash animation using ScreenToGif and upload it here: https://postimages.org/
Share an image of the last sprite (which you mention has an error) in the Sprite Editor as well.
-
-
AuthorPosts
- You must be logged in to reply to this topic.
Advertisement below: