I'm trying to add a menu screen to my game, but seem to be running into problems with sprites loading upon exiting the menu.
In particular if I have the game state go from menu -> game, sprites don't load but the colliders (via windfield) do. Does anyone know what's wrong with it? Setting the game state immediately to game has everything load fine, but it's the transition from menu to game that causes sprites to not load.
I've attached the main.lua file and the player.lua file. If I need to attach anything else please let me know!
Main menu preventing sprites from loading?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Main menu preventing sprites from loading?
- Attachments
-
- player.lua
- (1.73 KiB) Downloaded 205 times
-
- main.lua
- (4.71 KiB) Downloaded 216 times
Re: Main menu preventing sprites from loading?
I figured it out! It turns out my current tester menu was creating a black screen over all the drawn images preventing anything from being seen. Resetting the graphics before drawing fixed the problem. I'm going to look into utilizing a UI library to hopefully simplify this
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests