Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / [SOLVED] Problem loading unloading scenes

Author
Message
Parzival
2
Years of Service
User Offline
Joined: 1st May 2021
Playing: AppGameKit Studio
Posted: 2nd May 2021 00:01
hello im new developer using apkstudio and i have a problem
I have two scenes: nv & hiscore

when i try to switch from nv to hiscore scene, nv sprites still remain on screen when i switch to hiscore

My code is:


How can i fix it? Thank you!

The author of this post has marked a post as an answer.

Go to answer

jd_zoo
5
Years of Service
User Offline
Joined: 12th May 2018
Location: Nova Scotia
Posted: 2nd May 2021 12:17
You should have a hiscore_sync() that you need to call every loop for your second screen. Right now I am guessing you are calling nv_sync() in your main loop, if you switch screens you need to switch what scene you call the sync() command for.
Parzival
2
Years of Service
User Offline
Joined: 1st May 2021
Playing: AppGameKit Studio
Posted: 3rd May 2021 04:56
I have hiscore_sync () in my do / loop, but there are still traces of nv when switching scenes.



I attach images so you can see what happens

jd_zoo
5
Years of Service
User Offline
Joined: 12th May 2018
Location: Nova Scotia
Posted: 3rd May 2021 23:02
Does the 'menu' scene switch to the 'nv' scene correctly? It may be having the cleanup for 'nv' scene in a separate function, but that is a guess I haven't used the scene editor much.
Parzival
2
Years of Service
User Offline
Joined: 1st May 2021
Playing: AppGameKit Studio
Posted: 4th May 2021 18:15 Edited at: 4th May 2021 22:42
This post has been marked by the post author as the answer.
Yes, the scene nv switch correctly from menu scene. The problem ocurr when switch from nv to hiscore.

I solver using deleteallsprites and then using hiscore_setup() function

Login to post a reply

Server time is: 2024-04-24 20:00:20
Your offset time is: 2024-04-24 20:00:20