tomis13lack Posted March 15, 2019 Share Posted March 15, 2019 So I made this script that allows you to have a static loading screen entirely in lua. https://steamcommunity.com/sharedfiles/filedetails/?id=1676105035 How it works: In Main.lua, I took out the chunk of code from the WHILE loop that renders the world, and instead moved all that to a function called ShouldMapChange(). ShouldMapChange simply does all of the world rendering IF the map should not change. If it should, it renders a static loading screen image then proceeds to change the map. You can then change the map by calling the ChangeMap function. It only allows a static loading screen but that is MUUUCH better than looking at a black windows "Not Responding" while it loads imo. In the script, I give you the option of using an actual image (texture), which usually looks better. If, however, you don't have one there is an else statement which allows manually drawn loading screens with text. Enjoy! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.