ShadowMario / FNF-PsychEngine

Engine originally used on Mind Games mod
Apache License 2.0
1.15k stars 2.22k forks source link

How to resize Window with OnStepHit? #15281

Closed MaximusMax09 closed 1 month ago

MaximusMax09 commented 3 months ago

What is your question?

Hello, I am making an FNF Mod with 4th Wall breaks In one song the window moves around on it's own but to make it work, the Window needs to change size mid song I tried to make a script but it just doesn't work.

Here is the script I made:

local windowWidth = 960

local windowHeight = 720

local curstep

function onStepHit() if curstep = 368 then setPropertyFromClass("openfl.Lib", "application.window.width", windowWidth)

setPropertyFromClass("openfl.Lib", "application.window.height", windowHeight)

end

Can someone help me?

FuseIsHere813 commented 3 months ago

windowWidth or windowHeight must be a value (i.e numbers).

xxyuee commented 3 months ago

no need to make a new curstep variable, curStep already exists

FuseIsHere813 commented 2 months ago

stale