Create A 2.5D Platformer Game With Unreal Engine (Tutorial)



Learn how to create a 2.5D Platformer game with Unreal Engine in this full tutorial using C++. In this beginner’s course, you will how to create a game with Unreal Engine and Blueprints.

💻 Project assets: https://drive.google.com/file/d/1lAOYnsPh3oq89nfyc31zn5KrVs5wBK4p/view?usp=sharing
💻 Completed code: https://drive.google.com/file/d/16jVlY4LB1CYVf0Lg2yyaESzLi_-4gErG/view?usp=sharing

🎥 Course from Awesome Tuts. Check out their YouTube channel: https://www.youtube.com/awesometuts
🔗 Learn more about game development here: https://www.awesometuts.com/ultimate-game-dev-academy?utm_medium=youtube&utm_source=freecodecamp

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming: https://freecodecamp.org/news

And subscribe for new videos on technology every day: https://youtube.com/subscription_center?add_user=freecodecamp

source

This Post Has 44 Comments

  1. Kevin99

    Ok so, you created a mesh with a ball material and then in the code you wrote a blueprint that change the color of the material which is the entire ball mesh, how did you make glow that specific part of that material?? And also in 35:50 why did you picked the get actor forward and multiplied with get MoveRight? What is the connection?

  2. Business Opportunity in Ruvol

    I have invented a Board Game [still unpublished and not yet out in the market] that I believe is guaranteed to be as challenging and exciting as CHESS. I called it “RUVOL.”

    It is my hope that one day Ruvol may surpass chess as the “Number One Board Game in the World.”

    The weakness of chess is it always starts in fixed positions that the opening moves become “memorizable.” In fact, not a few have so mastered the moves that they can play against their opponents “blindfolded.” It is for this very reason that the great Bobby Fischer introduced his so-called “Fischer Random Chess,” where the starting position of the pieces is “randomized” to make the memorization of openings impracticable. Fortunately, it is also for this reason that I invented Ruvol where “every game” has been calculated to be a challenging one to play.

    HOW IS RUVOL PLAYED and HOW YOU CAN MONETIZE IT?

    I detailed everything in my YouTube video. Here is the link: https://www.youtube.com/watch?v=jcqth0m3-R0

    BIG MONEY POTENTIAL IN RUVOL!

    It is worthwhile to note that the people who play chess will be the same people who will play Ruvol. In my Google search, I learned there are around 800 million chess players in the world. Even just a small percentage of these 800 million is good enough to earn big money from Ruvol either as an ONLINE GAME BUSINESS or as a PHYSICAL PRODUCT DISTRIBUTOR.

    You may contact me at: rodolfovitangcol@gmail.com.

    Thanks and God bless!

    RODOLFO MARTIN VITANGCOL

    The Ruvol Inventor

  3. Macy Spitfire

    So many bad bois there i suspect this game is some kind of criminal den or something. Anyway good tutorial!

  4. jeromy Smith

    Arrgh! Timestamp 51:01, I'm getting a rotating world. I've gone over the rotation blueprint and can't spot anything different. Help!

  5. M B

    Starting to get into game development. Thank so much for your free content. Who needs expensive schools if one has such an awesome community. greetings from austria

  6. i am try to devolope this project but there are few problem, the block are moving in Z axis and if i try to jump on they move my camera out of the game , and when you roll the block also the box collider is rolling so does mean they change the interacting point, anyone have a solution?

  7. I did everything as you did but when I overlap with lazer its just giving damage when entering the collision and quiting collision its not permamently how can I do that I did everything on event tick as you

  8. I can't see the faint glow on the ball Player, why is that and how do I resolve it?

  9. Lateraluz

    this doesnt use c++ this uses blueprints.

  10. potato killer

    I came here to learn how to make a platformer, stayed because I love the way this guy explains everything with his semi-sarcastic tone

  11. Jacopo Freddi

    For those who are wondering at 1:05:00 "why does sign stabilize the ball". Just put a breakpoint (press F9) on the Launch Character node and hover with the mouse over the input of the Sign node to see what it looks like. The value I saw for the first hit was -75 (which is the distance between the location of the hit and the center of the ball, aka the radius). The difference between "with sign" and "without sign" is just that in the first case you're always adding the same launch velocity to the character (i.e. a <(+/-) 800, 0, 1400> vector), while in the second case the X component depends on the distance between the center of the ball and the hit position. In this game there is no difference since the ball is spherical and every hit will always be at the same distance, but it may not always be the case. So, if you multiply by a value like "12" instead of "800" after sign and don't normalize the vector, the jump would work roughly the same, while in other cases (say you are playing as a car, or a spaceship, or another irregular form) you will want to take the direction of the hit in a normalized form in order to consistently apply the same hit.

    Another way to see this is: you take the "hit vector" composed like this: <ActorLocation.X – HitResult.X, 0, 0> and "normalize" it to get a vector that is either <-1, 0, 0> or <1, 0, 0>.

  12. DarthKickapoo

    How does Puzzlemode boolean in the Player blueprint receive input to know if player is moving right or left.

  13. Allusio

    is it just me or are there no assets in the folders?

  14. Almark

    I don't think we have worked enough with the great potential of Unreal engine for 2D games. There is just so much you can do, and even if it's overkill, that's fine, use what it gives you and make a great game.

  15. Mark Sun

    In the final part, when we move the elevator, are we doing it by setting a new location and the elevator slowly moves to that position?

  16. Ariel Araya

    1:40:00 my ball can enter to the laser and it's detected but on the next frame it doesn't do anything, i do not know what's happening, it's like the bp_laser haven't the tick event activated but it is

  17. 엄재천

    I need help. why rotate intreactiveBlock? absolutely I did Set motion type free to lock of angular swing limit and twist limit

  18. Axdn

    How would I add a timer function and track Personal Best times?

  19. DarkiGG

    This video is good, but you're doing so much more then the basics, and thats not nececasrly good

  20. Bryant Chiew

    helpppp! my laser doesn't have color, what do i need to do to add the color?

  21. Fierce Vinegar

    i cant get the ball to move right it keeps moving up and down off the map also when i start the level it automatically moves to the right idk why

  22. arsha parhizi

    i wanna to add shooting system in this game but i dunno how some one can help me

  23. Dmitry TT

    Guys, if you have problems compiling the material (most likely you are working in ua5), use the mask node(r,g,b,a) at the moment when the node Lerp(time -> divide->sine -> lerp) goes to if(a==b). I had to spend a lot of time to fix this 😀

  24. Antti Kantola

    it doesnt do the interaction from my E button 🙁 i think it some time. wonder that auto action and action thing. maybe i find out trouble.

  25. Naya Ramadan

    My ball isn't showing in the game when I press play at 11:03 , anyone knows if something is wrong with the script or if I am doing something wrong..

  26. Nishal Poudel

    At 4:03, he cliks on the exmaple map and it shows it on the screen. When I do it nothing shows, why? The rocks mesh exists as I can see them on the outliner but they don't show on the 'screen'. Can anyone help me please, I am a complete noob when it comes to unreal engine.

  27. Jessie Delorme

    Look forward to more dude…im jus starting out in the world of game creation

Leave a Reply