Hi Guys
Play around with AppGameKit Studio 0.50beta
What will be the correct code for moving between scenes.
If have this code (In the main loop, but don't seems to work
// Project: testbackground
// Created: 19-03-29
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle("testbackground")
SetWindowSize(1024, 768, 0)
SetWindowAllowResize(1) // allow the user to resize the window
// set display properties
SetVirtualResolution(1024, 768) // doesn't have to match the window
SetOrientationAllowed(1, 1, 1, 1) // allow both portrait and landscape on mobile devices
SetSyncRate(30, 0) // 30fps instead of 60 to save battery
SetScissor(0, 0, 0, 0) // use the maximum available screen space, no black borders
UseNewDefaultFonts(1)
global activescene
#include "mainscreen.scene"
do
spritehit=GetSpriteHit(GetPointerX(),GetPointerY())
if getpointerpressed() = 1
if spritehit = mainscreen_exitbtn
exit
elseif spritehit = mainscreen_backg1btn
#include "movebackground1.scene"
activescene = 1
elseif spritehit = mainscreen_backg2btn
#include "bacground2.scene"
activescene = 2
endif
endif
sync()
mainscreen_sync()
if activescene = 1
movebackground1_sync()
endif
if activescene = 2
bacground2_sync()
endif
loop
Thanks
Danie