Flashlight collider, enable YSort, bug: character is shaking while moving
This commit is contained in:
parent
a610cd0561
commit
434493578c
5 changed files with 114 additions and 51 deletions
5
prefabs/light_sense.tscn
Normal file
5
prefabs/light_sense.tscn
Normal file
|
@ -0,0 +1,5 @@
|
|||
[gd_scene format=3 uid="uid://cf0wpahgwygxx"]
|
||||
|
||||
[node name="LightSense" type="Area2D"]
|
||||
collision_layer = 2
|
||||
collision_mask = 2
|
|
@ -7,6 +7,7 @@
|
|||
size = Vector2(15, 15)
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
y_sort_enabled = true
|
||||
script = ExtResource("1_1vpun")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue