30 lines
426 B
GDScript3
Raw Normal View History

2024-01-16 22:01:16 +00:00
class_name Player
2024-02-07 22:04:19 +00:00
extends CharacterBody3D
signal attacked
signal dashed
signal jumped
signal direction_changed
var controller: Controller
func attack():
attacked.emit()
func dash():
dashed.emit()
func jump():
jumped.emit()
func set_direction(direction: Vector3):
direction_changed.emit(direction)
# TODO: Remove this:
2024-01-22 16:12:26 +00:00
2024-01-28 18:18:16 +00:00
var id: String
2024-01-25 23:29:05 +00:00
func set_character_name(new_name: String):
name = new_name
2024-02-07 22:04:19 +00:00
$Label.text = name