Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual Content: sprite_get_bbox_left() page code example has left and right values the wrong way around #8430

Closed
gm-bug-reporter bot opened this issue Nov 15, 2024 · 2 comments
Assignees
Labels
docs-bug GameMaker Manual Bugs

Comments

@gm-bug-reporter
Copy link

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

@gm-bug-reporter gm-bug-reporter bot added the docs-bug GameMaker Manual Bugs label Nov 15, 2024
@stuckie stuckie moved this from Triage to Backlog in Team Workload Nov 18, 2024
@YYDan 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
@YYBartT YYBartT moved this from Backlog to In Progress in Team Workload Nov 20, 2024
YYBartT added a commit to YoYoGames/GameMaker-Manual that referenced this issue Nov 20, 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
@YYBartT
Copy link

YYBartT commented Nov 20, 2024

Fixed the code example on all sprite_get_bbox_* manual pages.

@YYBartT YYBartT closed this as completed Nov 20, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Team Workload Nov 20, 2024
@YYBartT YYBartT moved this from Done to Ready for QA in Team Workload Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-bug GameMaker Manual Bugs
Projects
Status: Ready for QA
Development

No branches or pull requests

2 participants