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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Platformer Character Controller Help

Discussion in '2D' started by Tom_Bombadil_, Aug 7, 2018.

  1. Tom_Bombadil_

    Tom_Bombadil_

    Joined:
    Aug 6, 2018
    Posts:
    46
    So I will start by saying that I am very new to the Unity engine and its community so I apologize if I am asked a difficult question or if am posting in the wrong place,

    I have done game design as a hobbyist for several years now (Game Maker, Rpg Maker XP-ACE) but I have never produced anything thing close to what I would consider a final product. I have reached a point where I really want to see a project through to completion so I am going to my all time favorite genre, platformers, and I feel that Unity provides me with the best tools to get it done.

    Sadly, I have little experience with coding and no experience with c#. I would like to learn and eventually begin coding my own systems but for the time being I was wondering if there was a simple yet relatively expansive Character Controller for a more Metriodvania style platformer that was readily available or if anyone knew of any quality tutorials that would facilitate the creation of my own. Eventually I would like to create my own character controller so I can get both the functionality and the feel of it just right but in the meantime I would like to be able to begin prototyping and focus on the level design and progression of the game.

    I know that this is probably quite a complicated question but any assistance would be greatly appreciated. Thank you in advance to anyone who is able to help me out with this one.
     
  2. Lyker

    Lyker

    Joined:
    Feb 27, 2013
    Posts:
    60
    Have you already checked out the 2D asset package? It might contain some useful information regarding what you want.

    2d import.PNG
     
  3. Tom_Bombadil_

    Tom_Bombadil_

    Joined:
    Aug 6, 2018
    Posts:
    46
    Oddly none of the options below Custom Package are appearing on my computer,
     
  4. Lyker

    Lyker

    Joined:
    Feb 27, 2013
    Posts:
    60
  5. PlayDreamState

    PlayDreamState

    Joined:
    Jul 14, 2018
    Posts:
    2
    Unfortunately, all of the pre-built character controllers you'll find won't give you the classic platformer feel. They're usually implemented with capsule colliders, meaning characters slide off the edge of a platform. If they don't use a capsule collider, they most likely use the built-in 2D physics. It's a great physics engine, but platformer physics shouldn't try to simulate real physics.

    Instead, the best thing to do is write your own character controller. Unity has a great tutorial on a raycast based character controller here:



    It's certainly not feature complete or production ready, but it should be a good start. If you want a longer and bit more feature rich implementation, follow this tutorial by Sebastian Lague:



    It's another raycast based controller.

    Both of these implementations require coding, and to extend them, you'll need a good knowledge of coding and Unity itself. To go even further, you'll need to know how to apply trigonometry and linear algebra. If you do get a good understanding of all of this though, you can make something that feels exactly like all of your favorite metroidvania games.