YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

GMRT: bbox_right returns 1 higher than expected, is perhaps not respecting compat mode Game Option #8567

Open Sidorakh opened 4 days ago

Sidorakh commented 4 days ago

Description

Discrepency between bbox_right in the GMS2 and GMRT runtimes, in the attached sample bbox_right is equal to 190 in GMS2 and 191 in GMRT.

Steps To Reproduce

  1. Disable collision compatibility mode in the attached project
  2. Run the attached project
  3. See the issue

Which version of GameMaker are you reporting this issue for?

IDE v2024.1100.0.686 Runtime v2024.1100.0.718

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

Windows 10.0.22635.0

7216814f-1cef-4bd9-af88-4aad25373a99

KormexGit commented 4 days ago

Talked about it in discord a bit, I'm wondering if maybe GMRT is always acting like collision compatibility is enabled and ignoring the checkbox, since compatibility mode changes how bbox_right is rounded

mistletoe commented 3 days ago

This was a change in GMS2+.

I still think they should have just let us set object centers with arbitrary floats, so that odd-sized Sprites could be centered on a true center, rather than a corner (i.e., a Sprite that's 203X107 could have its center set to 101.5,53.5, and the bbox values would also be half-pixel values).