Add dungman
This commit is contained in:
1 parent
2c47b309ae
commit
4c3f01a835
6 files changed
+1073
-9
No files matched your search
+1
-1
@@ -11,7 +11,7 @@ func _ready():
|
||||
func _physics_process(delta):
|
||||
var input = Vector3(Input.get_axis("left", "right"), 0.0, Input.get_axis("up", "down"))
|
||||
var motion = Plane.PLANE_XZ.project(get_viewport().get_camera().global_transform.basis.xform(input)).normalized() * SPEED
|
||||
|
||||
$DungMan.look_at(global_transform.origin - motion, Vector3.UP)
|
||||
move_and_slide(motion)
|
||||
|
||||
func can_afford(item_name, item_amount):
|
||||
|
||||
Reference in new issue
Block a user