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)

in Engine by (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.

by (113 points)
edited by
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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.