Hello everyone, I am currently making a 2D platformer in Unity and have some small issues with platforms.
I have a player, grounded (main) platform and some floating platforms. Both types of platforms have collision boxes attached, as well as player. When I’m testing out the game, I am able to jump from the ground on platform, but cannot jump from platform to platform, my player just lands trough it. Any idea where the problem might be?
Without seeing code on how platforms and movement is handled, I would say check the layers
Do those floating platforms have same layer as grounded (main) platform? Also, are the floating platform colliders, Triggers?
Also, check if your player has a rigidbody2D (preferably Dynamic if he is the “protagonist”)
If floating platforms don’t have same layer as grounded (main) platform, check if the layers of floating platform and player collide/interact from: Edit->Project Settings → Physics2D-> Layer Collision Matrix
If the above suggestions didn’t work, post some pictures of the script and/or platforms so it is easier to find the solution ![]()
Thank you Thorlar for your suggestions, the layers really were the problem. I put both of hem on same layer and now everything works fine. ![]()
Cheers
I’m glad you found the solution ![]()