forked from team-sg/hero-mark-2
changed hitbox so can go between walls
This commit is contained in:
parent
5f3136a838
commit
25fcdd6f54
2 changed files with 27 additions and 37 deletions
|
@ -10,10 +10,10 @@ shader_param/border_color = Color( 0, 0, 0, 1 )
|
|||
shader_param/border_corners = false
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=2]
|
||||
extents = Vector2( 5, 4.5 )
|
||||
extents = Vector2( 3.9, 3.9 )
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=3]
|
||||
extents = Vector2( 5, 4.5 )
|
||||
extents = Vector2( 4, 4 )
|
||||
|
||||
[node name="Rock" type="KinematicBody2D" groups=["pushable"]]
|
||||
collision_layer = 4
|
||||
|
@ -26,14 +26,14 @@ texture = ExtResource( 1 )
|
|||
centered = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2( 4, 3.5 )
|
||||
position = Vector2( 4, 4 )
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="." groups=["squash"]]
|
||||
position = Vector2( -1, 0 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2( 5, 3.5 )
|
||||
position = Vector2( 5, 4 )
|
||||
shape = SubResource( 3 )
|
||||
|
||||
[node name="Bottom" type="Position2D" parent="."]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue