12 lines
273 B
GDScript
12 lines
273 B
GDScript
extends ActiveItem
|
|
var cooldown = 10
|
|
|
|
func actually_collect():
|
|
player.set_cooldown(cooldown)
|
|
|
|
|
|
func activate():
|
|
player.activate_cooldown()
|
|
player.reset_to_velocity = Vector2(0,1)
|
|
await get_tree().create_timer(0.1).timeout
|
|
player.reset_to_velocity = Vector2(0, -2400)
|