fuzzyworld

godot-shooter / change-html-template / files / SpeedPowerUp.gd

Branch change-html-template · default branch · all branches

SpeedPowerUp.gd

241 B · history · blame

1extends Node2D
2
3export var speed_amount = 10
4
5func _ready() -> void:
6 $AnimationPlayer.play("fade_in")
7
8func _on_Area2D_body_entered(body: Node) -> void:
9 if body.has_method("speed_up"):
10 body.speed_up()
11 $AnimationPlayer.play("fade_out")