GrappleTest/Player/GUI/GuiRoot.gd
Bingus_Violet 13ccecad19 fun
2024-02-26 08:28:11 -06:00

13 lines
534 B
GDScript

extends Control
@onready var player = $"../../"
@onready var velocNumb = $"Velocity"
@onready var horzVeloc = $"HorzVeloc"
@onready var vertVeloc = $"VertVeloc"
@onready var addedVeloc = $"AddedVeloc"
func _physics_process(delta):
velocNumb.text = "Velocity: " + str(round(player.velocity.length()))
horzVeloc.text = "Horizontal Velocity: " + str(round(abs(player.velocity.x)))
vertVeloc.text = "Vertical Velocity: " + str(round(abs(player.velocity.y)))
addedVeloc.text = "Added Velocity: " + str(round(abs(player.addedveloc)))