You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example in the documentation of sprite_get_bbox_left() is wrong for the width.
ww = sprite_get_bbox_left(sprite_index) - sprite_get_bbox_right(sprite_index);
should be replaced by
ww = sprite_get_bbox_right(sprite_index) - sprite_get_bbox_left(sprite_index);
YYDan
changed the title
Wrong example in sprite_get_bbox_left
Manual Content: sprite_get_bbox_left() page code example has left and right values the wrong way around
Nov 18, 2024
…right values the wrong way around
YoYoGames/GameMaker-Bugs#8430
* Moved the code example to a RH snippet and fixed the issue
* Inserted the snippet on all sprite_get_bbox_* pages (examples on other pages had the same mistake)
* Slight update of sprite_get_bbox_mode() page
Description
The example in the documentation of sprite_get_bbox_left() is wrong for the width.
ww = sprite_get_bbox_left(sprite_index) - sprite_get_bbox_right(sprite_index);
should be replaced by
ww = sprite_get_bbox_right(sprite_index) - sprite_get_bbox_left(sprite_index);
Manual Link
http://127.0.0.1:51290/index.htm#t=GameMaker_Language%2FGML_Reference%2FAsset_Management%2FSprites%2FSprite_Information%2Fsprite_get_bbox_left.htm
Which version of GameMaker are you reporting this issue for?
IDE v2024.6.2.162 Runtime v2024.6.1.208
Which operating system(s) are you seeing the problem on?
Windows 10.0.22621.0
508090c4-2610-4df9-baa2-b6c2ffb48ee9
The text was updated successfully, but these errors were encountered: