Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Create a 2D RPG and a 3D game in Godot 4.2
Rating: 4.4 out of 5(63 ratings)
715 students

Create a 2D RPG and a 3D game in Godot 4.2

A course for making a 2D RPG with resource gathering mechanic and an introductory course to 3D in Godot 4.2 and 4.1
Created byJMG Studios
Last updated 2/2024
English

What you'll learn

  • Learn the key concept of programming game in Godot 4
  • Create a 2D RPG protoype with resource gathering, crafting system and dialog manager
  • Having a good understanding of how 3D programming works in Godot 4
  • You will learn GDScript, which is the language of Godot

Course content

8 sections63 lectures12h 7m total length
  • Setup and creating the player11:05

    Set up Godot 4.2.1, enable Forward Plus renderer for a 2D RPG, import assets, and build a player with a circle collision shape, sprite sheet, and camera 2D.

  • Coding the player movement7:40

    Attach a script to the player in Godot 4.2, define speed and a Vector2 input, map UI left, right, up, down, and update velocity with move_and_slide in _physics_process.

  • Creating the player animations7:43

    Set up an animation player and create eight idle and move animations with keyframes and looping. Prepare to add an animation tree in the next video.

  • Creating the animation tree7:47

    Set up an animation tree in Godot 4.2, connect it to the animation player, and build blend space 2D states for idle and move to control directional animations.

  • Calling the animations through code6:36

    Call idle and move animations through the Godot animation tree using onready references and updating parameter playback. Adjust idle blend position and move blend position based on input movement.

  • Creating the sword animations and the sword hitbox9:01

    Create sword animations for a 2D RPG in Godot 4.2 by building swell down, up, left, and right with keyframes while enabling a brief area 2D hitbox for the slash.

  • Creating a finite state machine, creating input and calling our sword attack13:25

    Build a finite state machine with an enum for move and swirl, integrate a 2D blend space in the animation tree, and trigger the sword animation from input actions.

  • Create a crate to slash with the sword and setup collision layer and buses16:09

    Create a crate object in Godot 4.2 to slash with a sword, set up collision layers and masks, implement a hitbox with area 2D, and animate destruction in a level.

  • Creating the global data script and damage the player7:49

    Create a global player data script in Godot to manage lives with a static variable, then deduct one life when the player enters a kill zone area 2D.

  • Create the GUI to display the number of life18:03

    Create a canvas layer overlay in Godot 4.2 to display player lives as heart sprites. Use a sprite sheet and a for loop to render hearts according to health.

  • Introduction to shaders to damage the player15:06

    Learn to implement a 2D shader in Godot 4.2 that makes the player flash when damaged, using uniform flash color and modifier, and an area 2D hitbox with hazard group.

  • Creating the death animation and calling it through code11:31

    Create and trigger a death animation in Godot 4.2 using a 2D blend space, call it from code when health reaches zero, disable collisions, and reload the scene.

Requirements

  • No programming experience needed, although knowing some basics always help.

Description

In this course you will learn all the fundamentals of creating a 2D RPG similar to game like Zelda: a link to the past, Stardew Valley or Pokemon, from start to finish. I'll teach you the key concept of that genre of game, including:


  • Finite State Machine

  • Using Blend tree

  • Looting coin when hitting a chest

  • Using keys to open locked doors

  • Creating caves

  • Creating a UI system displaying the number of lifes and coins

  • Creating a system of resources gathering

  • Creating an inventory

  • Creating a crafting system to create a new weapon

  • Switching weapons by pressing a key

You can check the curriculum to learn more about the content of the course.

I'm focusing on making video that are straight to the point, giving you all the basics you need to understand key concept (while showing you how to use them) without overloading you.

Being a big fan of the Zelda series, it is a big blast for me to be able to teach you how to make a game of that genre, which is known to be quite difficult, but so rewarding and satisfying to play! At the end of this course, you will have a working RPG game prototype that you'll be able to develop, you will have learn the key concept of programming that type of game and - if you are a completely new to programming - you will have learn all the key concept of programming.


Then in the second part of this course you will learn how to create a simple 3D retro game. This is an introduction to 3D, by no mean a full blown course about how to create a full 3D game, but you will learn the following:


  • How to import 3D assets

  • Dealing with animations

  • Creating sword attack

  • Creating enemy that can patrol, chase and attack the player

  • Creating state machine to handle complex behavior

  • Collecting coin and object

  • Display the number of life and coin collected

And way much more. To have an overview, check the curriculum to see everything we are going to do together.

You don't need to have any prior experience, although a basic understanding of programming is a plus. I will teach you all the primary concept and explain you in details (without overloading you with no relevant concept) every line we are going to create for this game.

If all of this sounds like fun to you, enroll in this course and I'll see you in the first lecture!


Who this course is for:

  • Beginner and intermediate programmer interested in learning how to use Godot for creating 2D & 3D games