duckiewhy / Transparent-and-MultiWindow-FNF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Window move

Manu614 opened this issue · comments

how do I move a window and how do I make tweens work with a window?

window x in the function

yeah...but u cannot use floats

Math.round(addnumberhere)

Here is the code

override function stepHit() {
        Application.current.window.x = Std.int((Application.current.window.display.bounds.width - Application.current.window.width) / 2);
        Application.current.window.y = Std.int((Application.current.window.display.bounds.height - Application.current.window.height) / 2);   
        
         if (curStep == e )
            {   
                FlxTween.tween(Application.current.window, {width: 1920, height: 1080}, 1.6, {ease: FlxEase.quartInOut});
            }
}