Skip to content

Commit

Permalink
Player: Improve interaction between players
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
manuq committed Nov 12, 2024
1 parent 128ef00 commit 58de0eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/player/player.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ animation = &"all"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -46)
shape = SubResource("CapsuleShape2D_7x5a4")
one_way_collision = true

0 comments on commit 58de0eb

Please sign in to comment.