number keys for weapons; charger enemy is invulnerable
This commit is contained in:
parent
1d1d201520
commit
ae7d507a4c
5 changed files with 27 additions and 9 deletions
|
|
@ -23,6 +23,7 @@ func _start_charge() -> void:
|
|||
enemy.velocity = global_position.direction_to(Player.instance.global_position)
|
||||
enemy.velocity *= CHARGE_SPEED
|
||||
enemy.set_rotation_to_velocity()
|
||||
enemy.invulnerable = true
|
||||
|
||||
func _end_charge() -> void:
|
||||
charge_clock = 0.
|
||||
|
|
@ -30,6 +31,7 @@ func _end_charge() -> void:
|
|||
|
||||
enemy.default_movement = true
|
||||
enemy.set_collision_mask_value(4, true)
|
||||
enemy.invulnerable = false
|
||||
|
||||
%KnockUpArea.monitoring = false
|
||||
%Meshes.position = Vector3.ZERO
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue