Files
hsgj25-growth/growth/CardInjects/DashCardInject.tscn
Daniel Olsen ea34015f19 oh maybe, oh baby, oh maybe, oh baby
Say whoaoh
say whoa oh
say whoa
say yay
yay
2025-10-04 23:46:09 +02:00

27 lines
595 B
Plaintext

[gd_scene load_steps=2 format=3 uid="uid://b3piw7awjaxgj"]
[sub_resource type="GDScript" id="GDScript_cmuwy"]
script/source = "extends Node
var dash_speed = 200
func activate(world, activator):
if $Timer.time_left != 0:
return
$Timer.start()
const easeFactor = 1;
activator.velocity = activator.move_direction.normalized() * dash_speed * easeFactor
activator.move_state = 2
func discard(world, activator):
pass
"
[node name="Node" type="Node"]
script = SubResource("GDScript_cmuwy")
[node name="Timer" type="Timer" parent="."]
process_callback = 0
wait_time = 0.3
one_shot = true