playing with coin magnet
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=13 format=3 uid="uid://bacgd5lmvaxea"]
|
||||
[gd_scene load_steps=14 format=3 uid="uid://bacgd5lmvaxea"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bcgt64gerg8pv" path="res://Scripts/player.gd" id="1_5wxv7"]
|
||||
[ext_resource type="Material" uid="uid://b4rpp31c0dx2m" path="res://Assets/Materials/BasicMat.tres" id="1_y6xdh"]
|
||||
@@ -51,6 +51,9 @@ _data = {
|
||||
&"dodge": SubResource("Animation_hck1p")
|
||||
}
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_juxdh"]
|
||||
radius = 2.5
|
||||
|
||||
[node name="Player" type="CharacterBody3D"]
|
||||
script = ExtResource("1_5wxv7")
|
||||
|
||||
@@ -98,3 +101,12 @@ shape = SubResource("CapsuleShape3D_y5hcb")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_4qbli")
|
||||
}
|
||||
|
||||
[node name="Area3D" type="Area3D" parent="."]
|
||||
collision_layer = 32
|
||||
collision_mask = 32
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
||||
shape = SubResource("SphereShape3D_juxdh")
|
||||
|
||||
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]
|
||||
|
||||
Reference in New Issue
Block a user