Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Run & Jump: a basic free 2D Unity platformer project available on Github

Discussion in '2D' started by atadres, Oct 16, 2015.

Thread Status:
Not open for further replies.
  1. atadres

    atadres

    Joined:
    Nov 28, 2012
    Posts:
    10
    Hi

    If you need a basic 2D platformer to be used as a base for your video game idea you can one for free here:
    https://github.com/angelotadres/RunAndJump


    I made this to be used as a base in my book about creating custom tools in Unity, the main goal of this book is to create a level editor for this video game, but you can use this platformer alone if you want ;)

    If you are looking for the book, you can find it here: https://www.packtpub.com/game-development/extending-unity-editor-scripting

    I hope you enjoy this ;)
     
  2. atadres

    atadres

    Joined:
    Nov 28, 2012
    Posts:
    10
    Hi ijal

    What version of Unity are you using? Please use the latest version.
    Unity includes now the Debug.LogErrorFormat, is a debug method that allows you to format the string output.
    http://docs.unity3d.com/ScriptReference/Debug.LogErrorFormat.html

    If you still with the problem you can remplace the LogErrorFormat to LogError just keeping the string argument.

    Let me know if this solves the problem ;)
     
  3. atadres

    atadres

    Joined:
    Nov 28, 2012
    Posts:
    10
    Hi

    You must use 5.1.X or above.

    Let me know if you have problems after using a newer version of Unity.
     
  4. ijal

    ijal

    Joined:
    Nov 28, 2015
    Posts:
    3
    ok..i'll try..
     
  5. ijal

    ijal

    Joined:
    Nov 28, 2015
    Posts:
    3
    thanks..im using unity 5.2 and no problem...
    but can i convert this project to android ?
    i see button when i playing...and i think can playing on my HH..
     
  6. atadres

    atadres

    Joined:
    Nov 28, 2012
    Posts:
    10
    Sure. You can play this on desktop or in a mobile device.
     
  7. tedthebug

    tedthebug

    Joined:
    May 6, 2015
    Posts:
    2,570
    Looks good. I'm assuming you are holding the rights to it so people don't download it & publish it as their own?
     
  8. atadres

    atadres

    Joined:
    Nov 28, 2012
    Posts:
    10
  9. enhawk

    enhawk

    Joined:
    Aug 22, 2013
    Posts:
    833
    Thanks for sharing this up.

    I had a quick dig and it seems pretty solid, I'm sold on the book already.

    Three issues I did notice straight off the bat though:
    1. your project is not self contained, this can get messy when dealing with other plugins etc. It is usually advised to have a project folder in Assets, that is the same name as your game.
    2. you have scripts in your scene folder, it's not generally advised.
    3. How are you planning to do 1-way platforms with the double collider setup on the player? The capsule collider is on it's way, however having multiple colliders on 2D players creates problems when using Unity's new effectors.
     
  10. atadres

    atadres

    Joined:
    Nov 28, 2012
    Posts:
    10
    Hi Hawken.

    Thanks for you feedback :)
    • About what you commented in 1), I agree. I usually work in that way on my projects. However, answering 1 and 2, the decision was made in order to serve in a better way to the book purpose.
    • About 3, yes, that is something to improve in the implementation.
     
  11. enhawk

    enhawk

    Joined:
    Aug 22, 2013
    Posts:
    833
    to be fair, this is designed for PC
     
  12. atadres

    atadres

    Joined:
    Nov 28, 2012
    Posts:
    10
    Hi guys

    This game is capable to run on mobile.
    I will try to reproduce the error over the weekend and see what is happening ;)
     
  13. ijal

    ijal

    Joined:
    Nov 28, 2015
    Posts:
    3
    how...? still error or fix on mobile.? sorry for my bad english..
     
  14. kwickhightech

    kwickhightech

    Joined:
    Dec 4, 2015
    Posts:
    7

    Attached Files:

  15. john_77

    john_77

    Joined:
    Dec 12, 2015
    Posts:
    1
    How restart level script when times up...?
    And when build to android cant play level 1 ..pliz fix that..
     
    Otavio_ likes this.
  16. sagarsp11111

    sagarsp11111

    Joined:
    Aug 13, 2018
    Posts:
    1
    this is Awesome and u as well thanks for ur project to sharing with us
     
  17. deathtrash777

    deathtrash777

    Joined:
    May 18, 2022
    Posts:
    1
    Thanks. It may be a necroposting but that basis really helped a lot.
     
  18. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,321
    Instead of necroposting, please consider using the like button to show your appreciation.
     
    coatline likes this.
Thread Status:
Not open for further replies.