Hello,
i’ve got a bit of a logistics problem :
I want to add platforms in my game. The platforms behave as following :
- Player can pass trough them from below going up
- Player can’t pass trough them falling on them from above
- Player can pass trough them if pressing down button and jump button at same time
I’ve checked the 2D example projects and the forums and found a few things that work…in single player.
The most recommended way of doing this is checking on collision if the collider is on a platform, and if yes, and the context is right, deactivate the collider until the player goes trough.
This might work in single player, but in multiplayer it might not. I’m thinking of the situation where 2 players are on the same platform and either another player jumps up on the platform, or one of the 2 players tries to jump down from the platform. How would you manage this situation?