How Do I Make "collision Layers"?

Discussion in 'How Can I...?' started by Skrubzy, Nov 20, 2017.

  1. Skrubzy

    Skrubzy Avid Boxer

    Joined:
    Nov 3, 2017
    Messages:
    177
    Likes Received:
    44
    I have a side-scrolling game idea where the player must switch lanes to avoid obstacles. How would I make it so that only objects in the same lane [as the character] can interact/collide? At first I thought the game would need to be 3D, but then I saw this clip from an obviously 2D Sonic game: [​IMG]

    You can see that he goes around the platform to collect more rings. This isn't a very good example of dodging obstacles in other lanes, but it's the closest representation I've found for what I'm trying to do.
     
  2. Skrubzy

    Skrubzy Avid Boxer

    Joined:
    Nov 3, 2017
    Messages:
    177
    Likes Received:
    44
  3. Mr Goodcat

    Mr Goodcat Boxer

    Joined:
    Jun 10, 2017
    Messages:
    98
    Likes Received:
    28
    Have you tried changing the sizes of the collision shapes?
     
  4. Skrubzy

    Skrubzy Avid Boxer

    Joined:
    Nov 3, 2017
    Messages:
    177
    Likes Received:
    44
    What do you mean? If I do that, the player could just jump and hit the collision shapes of objects in other lanes (Which I don't want)
     

Share This Page