@@ -38,39 +38,22 @@ rect = Rect2( -30, 0, 60, 20 )
38
38
process_parent = true
39
39
physics_process_parent = true
40
40
41
- [node name ="FloorDetector" type ="Node2D" parent ="." ]
42
-
43
- [node name ="Left" type ="RayCast2D" parent ="FloorDetector" ]
44
- modulate = Color ( 0 , 1 , 0.0392157 , 1 )
45
- position = Vector2 ( -55 , 40 )
41
+ [node name ="FloorDetector" type ="RayCast2D" parent ="." ]
42
+ position = Vector2 ( -50 , 40 )
46
43
enabled = true
47
- cast_to = Vector2 ( 0 , 10 )
44
+ cast_to = Vector2 ( 0 , 15 )
48
45
collision_mask = 8
49
46
50
- [node name ="Right" type ="RayCast2D" parent ="FloorDetector" ]
51
- modulate = Color ( 0 , 1 , 0.0392157 , 1 )
52
- position = Vector2 ( 55 , 40 )
53
- enabled = true
54
- cast_to = Vector2 ( 0 , 10 )
55
- collision_mask = 2147483656
56
-
57
47
[node name ="KillerInstinct" type ="Area2D" parent ="." ]
58
48
59
49
[node name ="CollisionPolygon2D" type ="CollisionPolygon2D" parent ="KillerInstinct" ]
60
50
modulate = Color ( 0 , 0 , 0 , 1 )
61
51
polygon = PoolVector2Array ( -55.7638 , 43.9623 , 54.2375 , 43.9623 , 37.6812 , -34.3294 , 7.0941 , -55.0949 , -11.9877 , -47.7989 , -55.2025 , 4.39556 )
62
52
63
- [node name ="PlayerRight " type ="RayCast2D" parent ="KillerInstinct" ]
53
+ [node name ="Player " type ="RayCast2D" parent ="KillerInstinct" ]
64
54
modulate = Color ( 0.486275 , 0.0941176 , 0.0941176 , 1 )
65
55
position = Vector2 ( 40 , 30 )
66
56
rotation = -1.5708
67
57
enabled = true
68
58
cast_to = Vector2 ( 0 , 200 )
69
-
70
- [node name ="PlayerLeft" type ="RayCast2D" parent ="KillerInstinct" ]
71
- modulate = Color ( 0.486275 , 0.0941176 , 0.0941176 , 1 )
72
- position = Vector2 ( -40 , 30 )
73
- rotation = 1.5708
74
- enabled = true
75
- cast_to = Vector2 ( 0 , 200 )
76
59
[connection signal ="body_entered" from ="KillerInstinct" to ="." method ="_on_KillerInstinct_body_entered" ]
0 commit comments