YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
21 stars 8 forks source link

Spine: Animation with clipping mask's final frame is a frame that doesn't exist in the original project #6934

Open KormexGit opened 1 month ago

KormexGit commented 1 month ago

Description

I have a spine sprite where I use a clipping mask to make a circle appear in a pie chart sort of way. In Spine, the final frame is the full circle:

image

Inside GameMaker however, the final frame looks like this:

image

There's no frame that looks like this in the animation when viewed in spine.

I've included both a sample project and the original spine project file: Spine Clipping Bug Files.zip

Expected Change

The final frame of the animation to match what's seen in spine

Steps To Reproduce

Run the sample project, and compare what shows up to what shows up in the attached spine project.

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

2024.6.2 (Monthly), 2024.800 (Betas)

Which platform(s) are you seeing the problem on?

Windows

Contact Us Package Attached?

Sample Project Added?

KormexGit commented 1 month ago

If anyone else runs into this, I worked around it by manually setting the frame to the final frame - 0.01 on animation finish, which will make it show the intended final image

if skeleton_animation_is_finished(0) {
    skeleton_animation_set_frame(0, skeleton_animation_get_frames("Circle Fill") - 0.01);
}