Object Attributes and Saving

If the start script is used to set the player or any object's attributes and during play the game is saved, what happens when the game is loaded? Will the start script erase any progress? ⚔


The start script only runs when the game is first started.

Code to set initial attributes belongs in the start or _initialise_ scripts, and is run only once.

Code that you want to run when the game is started or when it's loaded (such as using javascript to move things around in the browser, or adjusting settings based on if the game is running on mobile) goes in the UI initialisation script.


Thanks Mrangel.


Log in to post a reply.

Support

Forums