ruffle-rs / ruffle

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

Tony Hawk's Underground 2: Scrolling Spray Bug #11899

Open waspennator opened 1 year ago

waspennator commented 1 year ago

Describe the bug

tony_hawks_underground_2.zip Swf seems to work on Ruffle with a noticeable visual issue, when you spray graffiti in game, it doesn't properly scroll out of screen and the graffiti instead just gets dragged along with the screen instead. Just press Z and tag the walls a couple times and watch the sprays to see the bug happen.

Thug 2 Ruffle

ruffle.rs-1688509971096.log

These errors seem to pop up alot during gameplay, the first one listed seemingly showing up every time you spray. MovieClip.localToGlobal: Invalid x and y properties

RemoveSprite: Source is not a display object

Expected behavior

The Sprays should scroll off the screen once you spray them onto a wall and not just get dragged along for the rest of the ride.

Affected platform

Desktop app

Operating system

Windows 11

Browser

No response

Additional information

No response

Lord-McSweeney commented 1 year ago

The first error (MovieClip.localToGlobal: Invalid x and y properties) is probably the one causing the issue.

waspennator commented 1 year ago

Thug.zip Ran it through Jpexs and believe I found the Graffiti code in question, in the scripts folder, DefineSprite (134), frame 1, Placeobject2 (83), CLIPACTIONRECORD onClipEvent(Load)

Dunno If it being x and x2 instead of x and y is causing problems on ruffle

waspennator commented 1 year ago

Still occuring as of latest nightly.