change player collision shape to a rectangle
This commit is contained in:
parent
dffd810183
commit
aeb3816ded
@ -3,9 +3,8 @@
|
|||||||
[ext_resource path="res://characters/player/sprites/green.tres" type="SpriteFrames" id=1]
|
[ext_resource path="res://characters/player/sprites/green.tres" type="SpriteFrames" id=1]
|
||||||
[ext_resource path="res://characters/player/Player.gdns" type="Script" id=2]
|
[ext_resource path="res://characters/player/Player.gdns" type="Script" id=2]
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape2D" id=1]
|
[sub_resource type="RectangleShape2D" id=1]
|
||||||
radius = 6.0
|
extents = Vector2( 7, 11.5 )
|
||||||
height = 12.0
|
|
||||||
|
|
||||||
[node name="Player" type="KinematicBody2D"]
|
[node name="Player" type="KinematicBody2D"]
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
@ -16,7 +15,7 @@ animation = "idle"
|
|||||||
centered = false
|
centered = false
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
position = Vector2( 12, 12 )
|
position = Vector2( 12, 12.5 )
|
||||||
shape = SubResource( 1 )
|
shape = SubResource( 1 )
|
||||||
|
|
||||||
[connection signal="player_moved" from="." to="." method="_on_Player_player_moved"]
|
[connection signal="player_moved" from="." to="." method="_on_Player_player_moved"]
|
||||||
|
Loading…
Reference in New Issue
Block a user