ruffle-rs / ruffle

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

Sweetie Bot's Pixel Trip: Preloader transition bug #9715

Open waspennator opened 1 year ago

waspennator commented 1 year ago

Describe the bug

db7d7x9-816b4e09-825e-4a38-bd52-0e39b3ef8d1d.zip

Game normally should auto transition to the title screen a second or two after the preloader finishes preloading, but on ruffle the game stays stuck on the preloader until you manually click to start.

Expected behavior

The game should automatically transition to the title screen a second or two after preloading finishes.

Affected platform

Desktop app

Operating system

Windows 11

Browser

No response

Additional information

No response

waspennator commented 1 year ago

Still a problem

waspennator commented 4 months ago

Still seems to be happening/

waspennator commented 4 months ago

Main.txt

Ran the game through a decompiler, guessing this might have something to do with why it's not transitioning to the title after finishing loading?

private function preparePreloader() : void { var buttonClickHere:SimpleButton; var loadingBar:MovieClip = null; var onProgress:Function = null; onProgress = function(param1:ProgressEvent):void { var loc2:Number = param1.bytesLoaded / param1.bytesTotal * 100; if(loadingBar != null) { loadingBar.scaleX = loc2 / 100; } if(loc2 == 100) { startFlash(); } }; loadingBar = MovieClip(getChildByName("loadingBar")); loaderInfo.addEventListener(ProgressEvent.PROGRESS,onProgress); buttonClickHere = SimpleButton(getChildByName("buttonClickHere")); buttonClickHere.addEventListener(MouseEvent.CLICK,function(param1:MouseEvent):void { startFlash(); }); }

  private function startFlash() : void
  {
     nextFrame();
     changeFrame(new FrameMenu());
  }