I'm working on a mobile game. I wrote some functions to load all my images/sprites, buttons and text. Everything starts out not visible. When the user selects a function from the main menu, like looking at the game instructions, it enables the assets I want to use for that section. For example when the user selects the instructions, I clear all my assets and activate the ones I want to activate. When the user is done, they exit and it clears all assets and goes back to the main menu. That code does the same thing, it activates what I need on the main menu and waits for the user to select an input.
Here's my problem. When I run this on my computer, my assets don't clear, they still show up and it looks like something is wrong. When I broadcast to my phone, it works perfectly. There seems to be a sync issue when executing locally. Has anyone ever had this issue? I tried changing the framerate and had no luck. Any other suggestions?
Also, I normally don't allow resizing (because it's a mobile game), but I turned it on to test. If I resize the screen, it refreshes and then clears the images, buttons and text that should not be there. So, is there a way to force a screen refresh? I tried clearscreen but again did not have any luck.