TeamRizu / OutFox

The Bug Reporting Repository for OutFox LTS 0.4, Alpha V and Steam Early Access Builds
https://projectoutfox.com
Apache License 2.0
187 stars 3 forks source link

[BUG] ScreenGameplay Background layer or BGA commands not playing before beat 0. #413

Open EngineMachiner opened 3 years ago

EngineMachiner commented 3 years ago

This issue has been around for a long time.

Describe the problem

When the first BGA is loaded before the beat 0, sometimes: 1.) The commands won't play. ("Init", "On") 2.) The commands get delayed (maybe waiting on the stack and then passing it with a tween) after they pass the beat 0. 3.) The commands are played in the wrong order or some of them are just skipped.

I also noticed that sprite animation is off too.

Describe what should happen

The first BGA should play it's commands normally.

Additional Info I found out that commands play fine after beat 0, if you change the metrics on the theme or fallback for [Background], with the metric RandomBGStartBeat >= 0 I am not sure but I wonder if there's something wrong with negative beats when a BGA loads.

( 1st case / No commands ) https://youtu.be/AasWAhZRkGA?t=10 ( 2nd case / additional tweening ) https://youtu.be/SAcHFnwbMVU?t=46 ( 3rd case / wrong order? ) https://youtu.be/bgfR37gseMM?t=46