funnymemellama/Debug.gd
2023-10-01 21:44:21 -04:00

17 lines
460 B
GDScript

extends Node
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
$Speed.text = 'Speed: {0}'.format([$Player.velocity.length()])
func _input(event: InputEvent):
if event is InputEventKey:
if event.keycode == KEY_F1 and not event.pressed:
$Mapentities.visible = not $Mapentities.visible