added most player movement states and started work on 'on foot'
This commit is contained in:
@@ -66,6 +66,12 @@ func _ready():
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(_delta):
|
||||
if Input.is_action_pressed("shoot"):
|
||||
shoot()
|
||||
|
||||
if Input.is_action_just_pressed("reload"):
|
||||
reload()
|
||||
|
||||
if chamber != null:
|
||||
var rot_amount = revolver_chamber_rot_amt * _delta * 10
|
||||
chamber.rotate_object_local(Vector3(0,-1,0),deg_to_rad(rot_amount))
|
||||
|
||||
Reference in New Issue
Block a user