Hello, I am having an issue with GetResumed() and I was wondering if this is a bug or as designed. It would be easier just to illustrate the issue. In the below snippet, GetResumed() works fine, i.e. the FPS print straight from loading and the 'Resumed' is displayed only after the window regains focus:
SetVirtualResolution(480, 320)
SetSyncRate(60, 0)
SetClearColor(0, 0, 0)
do
if GetRawKeyPressed(27) = 1
end
endif
if GetResumed() = 1
Print("Resumed")
Sync()
Sleep(2000)
endif
Print(ScreenFPS())
Sync()
loop
Now, by adding a Sync() prior to the loop, GetResumed() returns 1 when the app initially starts, and therefore starts with the 'Resumed' displayed, like so:
SetVirtualResolution(480, 320)
SetSyncRate(60, 0)
SetClearColor(0, 0, 0)
Sync()
do
if GetRawKeyPressed(27) = 1
end
endif
if GetResumed() = 1
Print("Resumed")
Sync()
Sleep(2000)
endif
Print(ScreenFPS())
Sync()
loop
This is causing a problem for me as I need to perform a Sync() to load in my LoadingScreen (I don't like to use AGKSplash.png), and my Pause menu is initiated immediately... Any ideas? Thank you!