Skip to content

Commit 58de0eb

Browse files
committed
Player: Improve interaction between players
On local multiplayer, other players shouldn't be an obstacle when running. But still is nice to stand on another player for jumping higher. It turns that making the player collision shape "one way" does the trick.
1 parent 128ef00 commit 58de0eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/player/player.tscn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ animation = &"all"
3838
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
3939
position = Vector2(0, -46)
4040
shape = SubResource("CapsuleShape2D_7x5a4")
41+
one_way_collision = true

0 commit comments

Comments
 (0)