Skip to content

fire boy and water girl light temple not working #8412

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

Closed
ROBlNET13 opened this issue Oct 29, 2022 · 2 comments
Closed

fire boy and water girl light temple not working #8412

ROBlNET13 opened this issue Oct 29, 2022 · 2 comments
Labels
A-avm2 Area: AVM2 (ActionScript 3) bug Something isn't working hitTest Issues involving mouse picking and hitTest

Comments

@ROBlNET13
Copy link

i cant press play on the swf i got from newgrounds https://www.mediafire.com/file/rnqlrgcon2u9n70/Fireboy_and_Watergirl_in_The_Light_Temple.swf/file
here is the file

@n0samu n0samu added bug Something isn't working A-avm2 Area: AVM2 (ActionScript 3) labels Oct 29, 2022
@Calvin304
Copy link
Contributor

Calvin304 commented Nov 22, 2022

it seems this is caused by Avm2ButtonData.hit_area having its parent set in Avm2ButtonData::create_state then not removed until you mouse over the misplaced hitbox. (note that hit_area itself is set after calling create_state in <Avm2Button as TDisplayObject>::construct_frame)

this causes incoming mouse events to get transformed twice; once because it's assumed hit_area has no parent in <Avm2Button as TInteractiveObject>::mouse_pick so the mouse event is transformed to local space and again through TDisplayObject::hit_test_shape.

@n0samu n0samu added the hitTest Issues involving mouse picking and hitTest label Dec 12, 2022
@Calvin304
Copy link
Contributor

this is fixed in #8744

@n0samu n0samu closed this as completed Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm2 Area: AVM2 (ActionScript 3) bug Something isn't working hitTest Issues involving mouse picking and hitTest
Projects
None yet
Development

No branches or pull requests

3 participants