YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

In-Game: skeleton_get_minmax() returns unexpected results when moving a sprite frequently #8442

Open patchuby opened 1 week ago

patchuby commented 1 week ago

Description

I'm in the process of updating to 2024.11 from 2024.2. I've noticed the player sprite disappearing when moving him a lot with the mouse. Disappearing means the game considers him outside the camera view. It seems that skeleton_get_minmax returns completely changed coordinates when he disappears (outside of the view), when his actual x and y haven't changed. I've managed to reproduce it with two alternate modes of movement (mouse and WASD).

Steps To Reproduce

  1. Add attached .sav file in C:\Users[user]\AppData\Local\Chronique_des_Silencieux to save time
  2. Launch game
  3. With the mouse click a lot around the character and on him until he disappears. You can also reproduce the bug with WASD controls, but it seems a bit harder, you need to be pretty fast.

Which version of GameMaker are you reporting this issue for?

IDE v2024.1100.0.686 Runtime v2024.1100.0.707

Which operating system(s) are you seeing the problem on?

Windows 10.0.22631.0

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

Windows

Attached Files

35f3469d-803b-45b1-bcd3-9c8c141769be

patchuby commented 4 days ago

Actually it seems that specific animations seem to trigger this issue, so it might not be related to movement but rather movement related animations.

An exemple can be seen in the following save https://api.gamemaker.io/api/github/downloads/d25b1d5f-6852-40f5-835b-b4d94acd6856 Click on the golden orb above the lady and click on the "Madame Solange" stamp appearing on the left hand side of the screen. She will cross her arms and then disappearing. A bubble will be visible on the bottom right edge of the screen which means she has teleported over there (or rather than skeleton_get_minmax() which is the basis for the getting the bbox of the character returns coordinates that are over there).