ruffle-rs / ruffle

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

There will be a large offset when you click on the Sprite #18038

Open aschord opened 3 weeks ago

aschord commented 3 weeks ago

Describe the bug

Because SpriteSheet technology is used in the game as a display, it is normal to click the flag when playing demo game.swf with FlashPlayer, but it will be greatly offset when playing the flag with RufflePlayer (presumably because the Bitmap not displayed is also considered as the click range). The click range is not accurate

Expected behavior

I want it to be as accurate when I click on the flag as it is in FlashPlayer

Content Location

BUG example file source code : demo game.swf AND demo game src.7z

Affected platform

Desktop app

Operating system

Windows 10

Browser

Google Chrome 93

Additional information

No response

kjarosh commented 2 weeks ago

Could you describe in detail how to reproduce the problem? It's not obvious what "the flag" means. A screenshot with a specific point where to click would be also appreciated.

aschord commented 2 weeks ago

Could you describe in detail how to reproduce the problem? It's not obvious what "the flag" means. A screenshot with a specific point where to click would be also appreciated.

When starting the game, the flag is not accurate in RufflePlay, because the flag is a Bitmap object, the part that can not be seen when clicked will also have click events, resulting in a lot of click accuracy offset! You can test with RuffePlayer by clicking on the flag and see that it doesn't turn over the flag where the mouse is.

bug

Normal should be mouse click where to open where the flag