-
I made a mod replacing dad, but it doesn't stay in place when doing animation. Is it the anchor or something else? if anyone can help me i'd really appreciate it!! |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
I see the problem. Lemme try to explain.Explaining how the game defines framesEach character has their own individual sprite sheet along with a .xml file that defines each frame. In the .xml file are alignments that grab the picture in the area from the sprite sheet.
Each line is a seperate frame.
Solutions to fix your issueSolution 1:You need to realign each picture on your sprite sheet to match up with the original dad sprite sheet (funkin>assets>images>DADDY_DEAREST.png). If you allign them up properly, it should fix itseld. Solution 2:In your DADDY_DEAREST.xml file, realign each frame using the x, y, width, and height parameters. The parameter units are based off of pixels in the image. |
Beta Was this translation helpful? Give feedback.
-
Thank you
|
Beta Was this translation helpful? Give feedback.
-
Hoo boy that is a lot. I will try to figure this out tomorrow since I am about to head to bed. DM me on discord if you want to discuss as I respond much faster on discord. my tag is tenta#7716. |
Beta Was this translation helpful? Give feedback.
-
Additional sprite offsets are currently hardcoded in Character.hx. You can use the AnimationDebug (press 8 during a level, facing the character in question) to figure out what they should be changed to. |
Beta Was this translation helpful? Give feedback.
-
I know nothing about game engines, what is AnimationDebug? Please help |
Beta Was this translation helpful? Give feedback.
-
Like I said, press 8 during a level, then you can use arrow keys/wasd to select animations and move them around. This is only helpful if you're recompiling the game from source, though. |
Beta Was this translation helpful? Give feedback.
-
Thank you. |
Beta Was this translation helpful? Give feedback.
-
Like I said, you press 8 during a level (song), but again, this won't be useful unless you're touching the code. By placing dots I mean just actually drawing dots in the corners of your art before exporting and then erasing them from the exported png. |
Beta Was this translation helpful? Give feedback.
I see the problem. Lemme try to explain.
Explaining how the game defines frames
Each character has their own individual sprite sheet along with a .xml file that defines each frame. In the .xml file are alignments that grab the picture in the area from the sprite sheet.