Main menu preventing sprites from loading?
Posted: Mon Aug 19, 2024 9:26 pm
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!
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!