Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Platform mess and disalbing sides of collider

Discussion in 'Getting Started' started by Tobitoon1, Jul 17, 2023.

  1. Tobitoon1

    Tobitoon1

    Joined:
    Apr 30, 2021
    Posts:
    3
    I followed the this tutorial to get platforms spawn at random position as in doodle jump.(There shown in the Gamemanager)
    As you can see sometimes my platforms just a messy bunch
    upload_2023-7-17_13-39-48.png

    and sometimes they spawn just right
    upload_2023-7-17_13-40-24.png

    In the video it seems like the second picture all the time. No messy platforms.
    Is there possibility to fix it or does anyone know why its happening?


    Second thing:

    You can see my platform in the pics and they got a Edge Collider 2D and a Platform Effector 2D. It works fine, my player can jump from through from below and stand on top. But i want to stop the player from colliding with the left and right side of the platform.

    These are the configurations:
    upload_2023-7-17_13-49-11.png

    I guess the collider is just a line but the player can still collide with sides. Is there that the player can also pass through the sides?
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,468
    Nobody can see your project and where you went wrong so not really.

    Really though, the only way is to go back to the tutorial and follow it more closely. After all, it's a tutorial for learning not just free code. :)