Object Attributes and Saving

Forgewright
29 Dec 2018, 10:27If 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? ⚔
mrangel
29 Dec 2018, 11:02The 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.

Forgewright
29 Dec 2018, 11:26Thanks Mrangel.