Hi
I'm testing the shared variables on HTML5 app with AppGamekit Studio V2021.02.09.
When i launch my html web page generated by studio and launch it on chrome i receive the following error in red on top page.
Uncaught Error: NetworkError for: AGKPlayer.data
I try on edge, it crash too with the message : Script error. in red
My code is :
// Project: web01
// Created: 21-04-07
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "web01" )
SetWindowSize( 640, 480, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 640, 480 ) // 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 )
SetSharedVariableAppGroup( "my_group_shared_variable" )
do
Print( ScreenFPS() )
Print( GetRawMouseX() )
Print( GetRawMouseY() )
SaveSharedVariable("AGK_ScreenFPS", str(ScreenFPS()))
SaveSharedVariable("AGK_GetRawMouseX",str(GetRawMouseX()))
SaveSharedVariable("AGK_GetRawMouseY",str(GetRawMouseY()))
SetSharedVariableAppGroup( "my_group_shared_variable" )
Sync()
loop
DeleteSharedVariable("AGK_ScreenFPS")
DeleteSharedVariable("AGK_GetRawMouseX")
DeleteSharedVariable("AGK_GetRawMouseY")
How Can i resolve the problem to launch my web page without error ?
Are my shared variables declaration correct ?
Thanks
patmaba