Pulse Works Studio
Parse Error: Function "update()" not found in base self.
CanvasItem.update() was renamed to queue_redraw().
Cause
A call written as update() inside your script is resolved on self. Godot 4 does not have that method. Drawing still happens from _draw(); queue_redraw() asks the canvas item to call it again.
Fix
extends Node2D
func _draw() -> void:
draw_line(Vector2.ZERO, Vector2(32, 0), Color.WHITE, 2.0)
func mark_dirty() -> void:
queue_redraw()
Related
Godot Dev Tools is a Pulse Works Studio project. All error explainers.