0 votes

extends RichTextLabel

var dialog = ["Good Morning Your Majesty!", "Did you sleep well?", "I sure hope so we have a VERY busy day ahead!"]
var page = 0

func ready():
set
bbcode(dialog[page])
setvisiblecharacters(0)
setprocessinput(true)

func input(event):
if event.type() == InputEventMouseButton && event.is
pressed():
if getvisiblecharacters() > gettotalcharactercount():
if page < dialog.size()-1:
page += 1
set
bbcode(dialog[page])
setvisiblecharacters(0)

func onTimertimeout():
set
visiblecharacters(getvisible_characters()+1)

asked Sep 25, 2018 in Projects by Danicron (12 points)

1 Answer

0 votes

I'm new to Godot, but I think it may be:

if event is InputEventMouseButton

Instead of:

event.type() == InputEventMouseButton

That may not be it though.

answered Sep 25, 2018 by tproper (105 points)
edited Sep 25, 2018 by tproper
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.