I recently figured out how to give players the option to choose which cursor they want to use. It works great, except for one thing: the data isn't persistent, so when the player opens the game up again, their setting has reverted to the default.
I'm completely stumped on how I'm supposed to go about making it persistent...
Here's the snippet in my preferences screen that changes the cursor:
Code: Select all
hotspot (265, 297, 37, 34) action SetField(config, "mouse", {"default": [("gui/cursor.png", 1, 1)]}) ## This is the first game cursor option for the player
hotspot (313, 297, 40, 35) action SetField(config, "mouse", {"default": [("gui/cursor2.png", 1, 1)]}) ## This is the second game cursor option
hotspot (361, 299, 132, 28) action SetField(config, "mouse", None) ## This makes the cursor the player's own computer cursor
Code: Select all
define config.mouse = {"default": [("gui/cursor.png", 1, 1)]}