Basing world coloring works.
This commit is contained in:
+4
-1
@@ -1,4 +1,6 @@
|
||||
extends CharacterBody3D
|
||||
class Player extends CharacterBody3D
|
||||
|
||||
@export var color : Color = Color.DODGER_BLUE
|
||||
|
||||
@export var move_right_action := "move_right"
|
||||
@export var move_left_action := "move_left"
|
||||
@@ -41,6 +43,7 @@ func _physics_process(delta):
|
||||
else:
|
||||
velocity.x = move_toward(velocity.x, 0, SPEED)
|
||||
velocity.z = move_toward(velocity.z, 0, SPEED)
|
||||
geometry.global_basis = Basis.from_euler(Vector3(0, -angle, 0))
|
||||
|
||||
if Input.is_action_just_pressed("dash_p1"):
|
||||
is_dashing = true;
|
||||
|
||||
Reference in New Issue
Block a user