Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to resize Window with OnStepHit? #15281

Closed
MaximusMax09 opened this issue Aug 10, 2024 · 3 comments
Closed

How to resize Window with OnStepHit? #15281

MaximusMax09 opened this issue Aug 10, 2024 · 3 comments
Labels
question Further information is requested

Comments

@MaximusMax09
Copy link

MaximusMax09 commented Aug 10, 2024

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?

@MaximusMax09 MaximusMax09 added the question Further information is requested label Aug 10, 2024
@MaximusMax09 MaximusMax09 changed the title How to resize Window with OnStepHit How to resize Window with OnStepHit? Aug 10, 2024
@FuseIsHere813
Copy link

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

@xxyuee
Copy link

xxyuee commented Aug 11, 2024

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

@FuseIsHere813
Copy link

stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants