Why is this inputEvent returning an error for InputEventMouseMotion?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Danicron

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])
set_visible_characters(0)
set_process_input(true)

func _input(event):
if event.type() == InputEventMouseButton && event.is_pressed():
if get_visible_characters() > get_total_character_count():
if page < dialog.size()-1:
page += 1
set_bbcode(dialog[page])
set_visible_characters(0)

func _on_Timer_timeout():
set_visible_characters(get_visible_characters()+1)

:bust_in_silhouette: Reply From: tproper

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.