ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.79k stars 822 forks source link

Out of Wind: Level 1 button is difficult to click #11705

Open n0samu opened 1 year ago

n0samu commented 1 year ago

Describe the bug

Link to SWF: http://i.notdoppler.com/files/outofwind.swf

In Out of Wind, it is difficult to click the button to start the first level, because movieclips for two of the locked levels are layered above it, preventing the click from reaching the button. Here is a video demonstrating it using Ruffle's new "debug rect" feature:

https://github.com/ruffle-rs/ruffle/assets/71368227/b8380ed3-eb2a-4161-9339-6f52c288e6e9

Expected behavior

Clicking anywhere on the level 1 button should activate the button, even if it's within another movieclip's bounds.

Affected platform

Desktop app

Operating system

Windows 10

Browser

No response

Additional information

No response

n0samu commented 1 year ago

The level button clips have these large bounds because of the size of the Bitmaps within them: image

Setting the large Bitmaps to invisible fixes the problem. I think Ruffle should not be considering transparent pixels of bitmaps in hit testing.