Cursor change when dialogue ends?
Posted: Mon Mar 19, 2018 1:49 am
Hi, I'm looking to have my game cursor change into an arrow when the dialogue finishes, so as to prompt the user to click for the next line, same concept as ctc, but instead of it displaying in the textbox, I want it to display as my mouse instead. I've put together some codes I found from around the forum, but it wouldn't work. Any help will be appreciated!
This code would give me an error, pointing to the following line:
stating that:
Code: Select all
init 1 python:
def change_cursor(type="default"):
persistent.mouse = type
if type == "default":
setattr(config, "mouse", None)
elif type == "1":
setattr(config, "mouse", {"default": [("gui/mouse_default.png", 0, 0)]})
elif type == "2":
setattr(config, "mouse", {"default": [("gui/mouse_click.png", 0, 0)]})
if not hasattr(persistent, "mouse"):
change_cursor()
else:
change_cursor(persistent.mouse)
init -2:
image mouse_change:
$ change_cursor("1")
define dee = Character("Dee", window_background="gui/textbox_dee.png", ctc= "mouse_change")
This code would give me an error, pointing to the following line:
Code: Select all
$ change_cursor("1")
Code: Select all
expected 'comma or end of line' not found.