46 lines
1.6 KiB
Plaintext
46 lines
1.6 KiB
Plaintext
[gd_scene format=3 uid="uid://ckx20kekib0od"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cq5agx2karf0a" path="res://assets/Images/drink-tea-svgrepo-com.svg" id="1_y24h4"]
|
|
|
|
[sub_resource type="GDScript" id="GDScript_rqnpm"]
|
|
script/source = "extends Node3D
|
|
|
|
func _on_area_entered(area: Area3D) -> void:
|
|
if area.name != \"Hurtbox\":
|
|
return
|
|
|
|
var player = area.get_parent()
|
|
if player.name == \"Player\":
|
|
var timer: Timer = player.get_node(\"SpeedBoostTimer\")
|
|
timer.start()
|
|
queue_free()
|
|
"
|
|
|
|
[sub_resource type="PlaneMesh" id="PlaneMesh_b5fwd"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_cumbd"]
|
|
transparency = 1
|
|
albedo_color = Color(0.98752075, 0.9222888, 0.91135114, 1)
|
|
albedo_texture = ExtResource("1_y24h4")
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_rqnpm"]
|
|
height = 2.5239258
|
|
radius = 2.3896484
|
|
|
|
[node name="SpeedBoost" type="Node3D" unique_id=2030295907]
|
|
script = SubResource("GDScript_rqnpm")
|
|
|
|
[node name="Cartell" type="MeshInstance3D" parent="." unique_id=1340947697]
|
|
transform = Transform3D(2.0101042, 0, 0, 0, 2.0101042, 0, 0, 0, 2.0101042, 0, 1, 0)
|
|
mesh = SubResource("PlaneMesh_b5fwd")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_cumbd")
|
|
|
|
[node name="SpeedBoostArea" type="Area3D" parent="." unique_id=2068048094]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.28158534, 0)
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="SpeedBoostArea" unique_id=62431841]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2619629, 0)
|
|
shape = SubResource("CylinderShape3D_rqnpm")
|
|
|
|
[connection signal="area_entered" from="SpeedBoostArea" to="." method="_on_area_entered"]
|