Trap explosions with damage and health bar depletion.
This commit is contained in:
@@ -9,3 +9,12 @@ func _ready() -> void:
|
||||
func _on_timer_timeout() -> void:
|
||||
print("Done")
|
||||
queue_free()
|
||||
|
||||
func proximal_shake(distance : float) -> void:
|
||||
print(Input.get_connected_joypads())
|
||||
if !Game.player:
|
||||
return
|
||||
var d = global_position.distance_squared_to(Game.player.global_position)
|
||||
if d <= distance * distance:
|
||||
Input.start_joy_vibration(0, 1,1,1000)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user