Build a Top-Down 2D GODOT RPG in 20 Minutes!

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ค. 2024
  • 👍👍👍 and subscribe for more godot video tutorials: / @and1hof
    Check out my best selling AppSec book: amzn.to/3pGO4Vz
    Check out my behind-the-scenes newsletter: www.andrewhoffman.me/newsletter/
    In this video tutorial, learn how to build a top-down 2d GODOT rpg in under 20 minutes. Collisions, character movement, tilemaps/tilesets proper scripting and scene usage included.
    Table of Contents:
    0:00 Introduction and Overview
    1:00 Installing GODOT
    1:55 Creating a new GODOT Project
    2:57 Getting Free Game Assets
    4:25 Three Most Important GODOT Concepts
    5:00 GODOT TileMaps (Map)
    6:00 GODOT KinematicBody2D (Player)
    7:20 The Player Scene
    8:00 Camera
    9:00 Input Map (Keyboard / Controller, Etc.)
    10:00 Player Movement Controller
    16:00 Collisions (Player, Objects, Enemies, etc.)
    18:30 Conclusion and Summary

ความคิดเห็น • 179

  • @maskedtitan9164
    @maskedtitan9164 2 ปีที่แล้ว +82

    You deserve a subscribe

  • @staticfanatic
    @staticfanatic 2 ปีที่แล้ว +22

    my previous comment aside, this was genuinely hugely helpful. please consider doing more in this series. great work.

  • @davidjellofox
    @davidjellofox ปีที่แล้ว +9

    Your tutorials have been very helpful. Thank you for getting me started into Godot. I was fairly lost until I found your tutorials and you quickly answered a lot of questions that got me going quickly.

  • @and1hof
    @and1hof  2 ปีที่แล้ว +73

    Thank you for all of the feedback regarding the audio balance. I've started investigating how to improve the audio balance in my future videos, and believe I have a solution. Enjoy your time with GODOT, and consider checking out my other GODOT tutorials if this one tickles your fancy 😀

    • @rembottherobot3418
      @rembottherobot3418 2 ปีที่แล้ว +1

      My code isn't working

    • @dandymcgee
      @dandymcgee 2 ปีที่แล้ว +14

      @@rembottherobot3418 Welcome to game development. ;)

    • @DogsRNice
      @DogsRNice 2 ปีที่แล้ว +2

      @@rembottherobot3418 the real problem is when your code always works

    • @Eadrom_Effa
      @Eadrom_Effa ปีที่แล้ว +3

      can you make full course top down 2D using GODOT, I will even pay it for full course cus the way you explain it simple and not complicated, I tried using unity and mostly I got confuse on my own scripts

    • @WiLDbEAsTGameSHere
      @WiLDbEAsTGameSHere ปีที่แล้ว +1

      Volume is a lil bit too low

  • @origenydestino13
    @origenydestino13 4 หลายเดือนก่อน +1

    A fantastic video for those who are impatient to see their assets come to live fast and even for a free evening where you want to make a game for yourself. Magnificent to get hyped and keep learning, without all the initial hassle of reviewing thousand settings, their usage and such. Subscribed, well deserved!

  • @michk5149
    @michk5149 ปีที่แล้ว

    Awesome tutorial! as full stack dev just jumping in this quick is amazing

  • @coreybarnett2158
    @coreybarnett2158 2 ปีที่แล้ว +30

    Great video! Hope you'll do more on RPGs in Godot. My only suggestion would be to zoom in when showing any code. That'd be helpful. Thanks again!

  • @asthalis
    @asthalis 2 ปีที่แล้ว +80

    Really interesting but, please, zoom on code, it is barely readable

    • @bobleponge3363
      @bobleponge3363 ปีที่แล้ว +12

      @CaptGooey i was on 1080p60 HD and still had trouble

    • @ZomBeeDabadee
      @ZomBeeDabadee ปีที่แล้ว +1

      The zoom window thing still exists for windows 10

    • @kentadran
      @kentadran ปีที่แล้ว

      Doesn't even matter for coding we have chatgpt3 already

    • @bruoche
      @bruoche 8 หลายเดือนก่อน +5

      @@kentadran ChatGPT's code is dreadfully bad

    • @GDT-Studio
      @GDT-Studio 6 หลายเดือนก่อน

      @@bruoche I use ChatGPT-4 for coding problems, it's not "dreadfully bad" as you mentioned.

  • @edwardjleavy85
    @edwardjleavy85 2 ปีที่แล้ว +10

    Thanks for the help, if anyone else had trouble reading the code.
    I've Copy and pasted it from my exercise...
    extends KinematicBody2D
    var velocity : Vector2 = Vector2()
    var direction : Vector2 = Vector2()
    func read_input():
    velocity = Vector2()

    if Input.is_action_pressed("up"):
    velocity.y -= 1
    direction = Vector2(0, -1)
    if Input.is_action_pressed("down"):
    velocity.y += 1
    direction = Vector2(0, 1)
    if Input.is_action_pressed("left"):
    velocity.x -= 1
    direction = Vector2(-1, 0)
    if Input.is_action_pressed("right"):
    velocity.x += 1
    direction = Vector2 (1, 0)

    velocity = velocity.normalized()
    velocity = move_and_slide(velocity * 200)

    func _physics_process(delta):
    read_input()

    • @MagicMaskedMonkey
      @MagicMaskedMonkey ปีที่แล้ว +2

      thank you, my code did not work but when i coy and pasted yours it did so thx

    • @mangonauts6464
      @mangonauts6464 ปีที่แล้ว +2

      Thank you for this! Had to even install one of those text comparison apps and found out the reason my code wouldn't work even though all the text was the same was because of a difference in indentation, having placed the velocity = velocity.normalized() lines all the way to the left

    • @couch2flag
      @couch2flag ปีที่แล้ว +1

      thanks a ton! I mistakenly put Input_is_action_just_pressed instead of Input.is_action_pressed so copy pasting your code really help.

  • @Winstreak1
    @Winstreak1 2 ปีที่แล้ว

    I will be attempting to recreate a game I made in Construct 3 for a tutorial using Godot this weekend. Your video should make that much easier. 😁
    Hopefully your tutorial takes the top spot over the other tutorials I had to click through to get here. I'll be slowly going through your other videos as my new endeavor continues.
    Cheers!

  • @KevinGenocchi
    @KevinGenocchi 4 หลายเดือนก่อน +8

    Character movement script is outdated. You must use CharacterBody2D instead. I got the following from trimming down and adjusting the code from Godots official 2D game guide:
    extends CharacterBody2D
    signal hit
    @export var speed = 200
    # Called every frame. 'delta' is the elapsed time since the previous frame.
    func _process(delta):
    var velocity = Vector2.ZERO # The player's movement vector.
    if Input.is_action_pressed("right"):
    velocity.x += 1
    if Input.is_action_pressed("left"):
    velocity.x -= 1
    if Input.is_action_pressed("down"):
    velocity.y += 1
    if Input.is_action_pressed("up"):
    velocity.y -= 1
    if velocity.length() > 0 :
    velocity = velocity.normalized() * speed
    position += velocity * delta

  • @EleventhFloorBelfry
    @EleventhFloorBelfry ปีที่แล้ว +15

    Deprecated.
    KinematicBody2D has been replaced by CharacterBody2D, and move_and_slide() refuses to work with it.

    • @jensgl
      @jensgl 6 หลายเดือนก่อน +1

      having the exact same problem

    • @ufoyyyccc1040
      @ufoyyyccc1040 6 หลายเดือนก่อน +1

      Here's a working script by Chatgpt:
      extends KinematicBody2D
      var velocity : Vector2 = Vector2()
      var direction : Vector2 = Vector2()
      func read_input():
      direction = Vector2() # Reset the direction vector
      if Input.is_action_pressed("up"):
      direction.y -= 1
      if Input.is_action_pressed("down"):
      direction.y += 1
      if Input.is_action_pressed("left"):
      direction.x -= 1
      if Input.is_action_pressed("right"):
      direction.x += 1
      velocity = direction.normalized() # Normalize the direction vector
      velocity = move_and_slide(velocity * 200)
      func _physics_process(delta):
      read_input()

    • @unne27
      @unne27 5 หลายเดือนก่อน +1

      @@ufoyyyccc1040 chatgpt's knowledge cutoff is in 2021, which is way before kinematicbody got replaced by characterbody. The script you sent would not work.

  • @JoeBlac
    @JoeBlac 4 หลายเดือนก่อน +4

    If you're making this tutorial with Godot 4.x some nodes and resources names have changed, eg KinematicBody2D has become CharacterBody2D. You can find the changes between versions in the Godot docs "Migrating to a new version"

  • @coyohti
    @coyohti 8 หลายเดือนก่อน +2

    Immediate thumbs up for having taken the time to learn how Godot is pronounced. It shows an admirable level of attention to detail. Thank you.

  • @Gnart_
    @Gnart_ ปีที่แล้ว

    This was an amazing tutorial! Thank you

  • @GergelyGati
    @GergelyGati ปีที่แล้ว +6

    Liked the video a lot.
    A tip for next time: try to capture stuff in lower resolution, so that the text is more readable on smaller screens.

  • @Lollipking
    @Lollipking 2 ปีที่แล้ว

    Perfect intro video, thank you!

  • @Maltebyte2
    @Maltebyte2 ปีที่แล้ว

    Thank you soo much for making these videos!

  • @toxidev4899
    @toxidev4899 ปีที่แล้ว

    This Was So Helpful! If It Wasn't For This I Wouldn't Be Using Godot.

  • @seth-blank
    @seth-blank 2 ปีที่แล้ว

    This helped so much!

  • @HiImMyna
    @HiImMyna ปีที่แล้ว

    this was really helpful, thanks heaps!

  • @synapticmemoryseepage4447
    @synapticmemoryseepage4447 ปีที่แล้ว

    Thank Godot! We no longer have to wait for Godot.

  • @arnonuhmer3771
    @arnonuhmer3771 2 ปีที่แล้ว

    very cool tutorial, thank you

  • @dandymcgee
    @dandymcgee 2 ปีที่แล้ว +1

    I implemented it.. it works. Now I just need to make the Escape key close the game. :D

  • @wonderincgames
    @wonderincgames ปีที่แล้ว

    Thank you so much! You helped me a lot! I can't thank you enough, so.... New subscriber!

  • @jackmeredith3542
    @jackmeredith3542 ปีที่แล้ว +2

    anyone know why my snapping grid doesnt scale down to 16 pixels when I'm creating a tileset and selecting individual tiles from a larger image?

  • @gamelin1234
    @gamelin1234 ปีที่แล้ว +5

    Great content. Only feedback is the volume of your voice feels low and distant, your system's volume is a lot louder.

  • @HuffleRuff
    @HuffleRuff 13 วันที่ผ่านมา

    Damn you really hammer that enter key lol

  • @mistahugz
    @mistahugz 2 ปีที่แล้ว +2

    so godot has an isometric mode and there are some isometric assets out there. is the programming process the same when doing 2d isometric style?

  • @zachariahm.kemper7406
    @zachariahm.kemper7406 2 ปีที่แล้ว +6

    Tried watching but the sound effects like the ding are so loud and if I crank it down so it isn't ear ringing your voice is so quiet I struggle to hear you

  • @danesmith624
    @danesmith624 2 ปีที่แล้ว

    very good introduction video

  • @SurealG
    @SurealG 2 ปีที่แล้ว +1

    Thanks so much for making this this i just picked up the software and it works great

  • @enochsadventures
    @enochsadventures 2 ปีที่แล้ว

    seriously good video

  • @satidseenun1724
    @satidseenun1724 ปีที่แล้ว

    thank you so much

  • @jka1277
    @jka1277 12 วันที่ผ่านมา +1

    Can't see "current" in camera 2D is there an alternative to that check box?

  • @RuthlessMetalYT
    @RuthlessMetalYT หลายเดือนก่อน

    where did you get those keybindings from? there's none in my godot.

  • @YeBittenDog
    @YeBittenDog ปีที่แล้ว

    When typing the movement script section I did not have the same auto-complete prompts appear for me. Is there a setting to enable this?

  • @KyllingKyllingSniketeSkygge
    @KyllingKyllingSniketeSkygge 2 ปีที่แล้ว

    Andrew Hoffman you are Hyun right then you are really god at stickman fights

  • @mrmonsterz644
    @mrmonsterz644 หลายเดือนก่อน +1

    Line 26:Function "move_and_slide()" not found in base self.

  • @bassgojoe
    @bassgojoe 2 ปีที่แล้ว +17

    I’m a godot newbie but gdscript seems more like python syntax vs javascript

    • @snesmocha
      @snesmocha 2 ปีที่แล้ว +3

      i'd say more than python ngl

    • @ame367
      @ame367 2 ปีที่แล้ว +3

      it literally is python with minor changes

    • @rogthepirate4593
      @rogthepirate4593 ปีที่แล้ว

      Yeah, first time I've heard that comparison tbh.
      And I'll be honest ... thank god it's NOT like javascript.

  • @Blue-Scorpion
    @Blue-Scorpion 2 ปีที่แล้ว +5

    Sound in this video is very silent.

  • @FutureChaosTV
    @FutureChaosTV 2 ปีที่แล้ว +21

    Tip/request for future videos:
    TH-cam shows your video as having -25dB volume level. That is far too low.
    I have you at 100% and my sound system at middle volume level and can almost not hear you speaking.
    You shouldn't go below -5dB on your master volume.

    • @batson0479
      @batson0479 2 ปีที่แล้ว +16

      And the bell sounds were far too loud relative to the voiceover.

    • @matthiasschuster9505
      @matthiasschuster9505 2 ปีที่แล้ว +2

      Yeah, it sounds very low on volume on my phone

  • @1J03B
    @1J03B 2 ปีที่แล้ว +4

    That ding sound at the beginning hurt my ears

  • @SapkaliAkif
    @SapkaliAkif ปีที่แล้ว

    I am surprised to see a video where medium audio is actually medium audio. Love it!

  • @its.maestro
    @its.maestro ปีที่แล้ว

    can you make a tutorial on adding background music and sound effexts

  • @rxgravite1925
    @rxgravite1925 2 ปีที่แล้ว

    heyy, idk whats happening but it only lets me move left and diagonal i have absoloutly no clue how to fix it can someone please help ?

  • @DJVibeDubstep
    @DJVibeDubstep ปีที่แล้ว +1

    What would be a better engine for a top down JRPG like the old Final Fantasy or games you’d make in the RPG Maker engine; Godot or Unity?

  • @Venom7530
    @Venom7530 2 ปีที่แล้ว +6

    good video. two things imo though, audio too low and when on the scripting would be helpful to have a zoomed in view available.

    • @edwardjleavy85
      @edwardjleavy85 2 ปีที่แล้ว +1

      i cannot see the code myself sadly :(

  • @rembottherobot3418
    @rembottherobot3418 2 ปีที่แล้ว +1

    I only go right and I made sure everything is correct

  • @Smiff248
    @Smiff248 20 วันที่ผ่านมา

    Somehow on the player script line 26 doesnt work it says error and i dont know why and how i should fix it ive tried so long now but nothing seems to work.

  • @hmxmisfit2120
    @hmxmisfit2120 ปีที่แล้ว

    Making maps on this engine with rpg maker assets is hard. Be easier to just hand draw the world IMO. Is this engine pixel based movement or tile based?

  • @Topher_lope
    @Topher_lope 3 หลายเดือนก่อน +3

    Wish this was updated :(

  • @GrimDuskStories
    @GrimDuskStories 2 ปีที่แล้ว

    My wasd Movement keeps traveling in the direction of the first key pressed FOREVER!!! how do i correct this?

  • @samuelhugo3387
    @samuelhugo3387 ปีที่แล้ว

    my character does not move, my code gives no errors, I did attach script to the player.
    Possible reasons why this could be? Possible solutions? TIA

  • @antodarell-brown6516
    @antodarell-brown6516 หลายเดือนก่อน

    does anyone know how to add a sprint input for the code used here?

  • @PDilling
    @PDilling ปีที่แล้ว

    I just can't get the camera to work for some reason and the move_and_slide function keeps causing a error. XD
    Edit: Ok, I figured out what happened to the camera, it was just the main scene that was defined incorrectly, if someone has an issue with the camera like me you can fix it by selecting the main scene as your world.
    And it turns out that move_and_slide only works if you "extends" from the "kinematicBody2D" at the top, yeah I had left it as "extends node" XD

  • @DoubO_
    @DoubO_ 8 หลายเดือนก่อน +1

    You are amnazing

  • @mangonauts6464
    @mangonauts6464 ปีที่แล้ว

    Couldn't figure out why my code wasn't working even though mine's pretty much a copy of the example. Then, figured out that apparently the amount of indentation a line has plays a part in whether the code works or not.

  • @asdqwe4427
    @asdqwe4427 6 หลายเดือนก่อน

    What was direction for?

  • @rogthepirate4593
    @rogthepirate4593 ปีที่แล้ว +1

    Is there a particular reason why you specifically cast the velocity and direction variables to Vector2?
    Since GDscript is dynamically typed, that seems rather pointless to me as the variable is going to be a Vector2 as soon as you assign a Vector2 value - which is instantly, since you instantiate it right away.
    But maybe I'm missing something?

    • @noxalas
      @noxalas ปีที่แล้ว

      The only reason you would cast variables in 3.x is for better warnings/errors and for 'cleaner' code (though that's subjective).
      In Godot 4 there is an actual performance gain when using static typing :>

  • @Zer0Morph
    @Zer0Morph ปีที่แล้ว +2

    Sure wish I could hear this video, looks really helpful.

  • @bobleponge3363
    @bobleponge3363 ปีที่แล้ว

    for some reason my collision doesnt work
    even though i have saved and written all the code correctly.

  • @theodoreclaftover4212
    @theodoreclaftover4212 2 ปีที่แล้ว +4

    I'm excited to jump on the GODOT train when 4.0 comes out. Till then I'll be working on sprites.
    @10:00 I dont know what they changed in the 4.0 alpha, but I was unable to set my player as a KinematicBody2D and chose something else, thus the tutorial code to move the player did not work. When I first added a new script to the player, Godot tried to automatically build one for me but it was set up as a platformer with gravity so the player immediately plummeted. I deleted the script and followed your instructions but could not pass a boolean to the non "KinematicBody2D" so it crashed. I bet if I did it again I could figure out what parts of the automatically created script to delete and I could incorporate your tutorial inside the remaining code. It may also be that parts of the KinematicBody2D are missing from the current 4.0 Alpha release.
    Awesome tutorial, but like I said, i'll work on other gamedev skills till 4.0 comes out.

    • @zaneaguilar5274
      @zaneaguilar5274 2 ปีที่แล้ว +3

      Just use 3.4 or whatever the most stable version that's not 4. I started learning Godot with no programming experience, before this I was mainly working on music, sound effects, and art.

    • @sakules
      @sakules ปีที่แล้ว +3

      KinematicBody2D has apparently, been replaced by CharacterBody2D

    • @Chareidos
      @Chareidos ปีที่แล้ว

      @@sakules Thank you sir! That was what I was thinking and about to search an answer or post to ask for clarification!

  • @trenox2753
    @trenox2753 ปีที่แล้ว

    For me the preview of the game doesn't work any fixes?

  • @marktriestolive1781
    @marktriestolive1781 2 ปีที่แล้ว +3

    Need more sound volume in the future.

  • @Lady.Kianna
    @Lady.Kianna 10 หลายเดือนก่อน +3

    4:51
    "were just gonna save it (the scene)"
    But... How? What did you click on?
    I cant see any menu youre using because of text on the screen blocking the left side, and you don't tell us what hotkey if any you are using.

  • @areo_falls
    @areo_falls 2 ปีที่แล้ว

    My left and down do not work how can I fix this?

  • @wVirtol
    @wVirtol 2 ปีที่แล้ว

    But this isn't the complete, how do you add enemies how do u add attack movements etc?

  • @gocardsandstuffshatteredle2406
    @gocardsandstuffshatteredle2406 ปีที่แล้ว +1

    3:39 headphone user warning ⚠️

  • @Okosano
    @Okosano 2 ปีที่แล้ว +12

    Hi! Im learning Godot actually and I followed your tutorial. My player dont want to walk (W,A,S,D isnt working) - I already checked the script with yours but its 1:1 the same....did you have any idea? Greetings from Germany, keep the good work!

    • @aquario1007
      @aquario1007 2 ปีที่แล้ว +9

      Pretty new too but did you go to the input map and add the keybinds?

    • @boerbol9422
      @boerbol9422 2 ปีที่แล้ว +5

      @@aquario1007 I was thinking exactly the same.

  • @gabbe117
    @gabbe117 2 ปีที่แล้ว

    how can I make assets?

  • @shadowfrost-kz5vo
    @shadowfrost-kz5vo 2 ปีที่แล้ว +1

    even at 75 percent speed you move very quickly and speak at a very low volume. i'll have to put this in a que for much later on when i'm more familiar.

  • @TheAnkiitu12
    @TheAnkiitu12 ปีที่แล้ว +2

    Is there something different between 3.4.2 and 3.4.4, because this code, specifically the player movement code, does not work.

    • @Hayato-br9hy
      @Hayato-br9hy หลายเดือนก่อน

      Yeah I guess, Value "Move_and_slide" have type bool and cant work with variable Vector2. I got this error

  • @LiamR90
    @LiamR90 5 หลายเดือนก่อน +1

    Looks good but this video was too fast, too zoomed out and not really a step by step. Mister Taft Creates made a similar series for Unity but it was much slower and broken down over several videos

  • @tmpecho
    @tmpecho 2 ปีที่แล้ว +1

    Isn’t GDscript based on python?

  • @fiddleriddlediddlediddle
    @fiddleriddlediddlediddle 2 ปีที่แล้ว +1

    Why is his volume set to .7%?

  • @ehutch79
    @ehutch79 2 ปีที่แล้ว +2

    The audio is barely audible. I usually have to turn youtube down, but i have everything cranked and can barely hear you.

  • @fiesesalien
    @fiesesalien 2 ปีที่แล้ว +2

    o... m... g... there was someone talking! But the audio is so incredible quiet I had to pump my volume to 100%. Please, god, don't let me forget it after the video... please please please (this functions also as critique! Don't upload "I hear just fine on headset"!!)
    Stay crunchy.

  • @ajiaoajiaoajiao
    @ajiaoajiaoajiao 2 ปีที่แล้ว +1

    think you

  • @stevensims3342
    @stevensims3342 ปีที่แล้ว

    Thanks for the video though I must say I have a friend like you who really SMACKS that enter key ✌😂

  • @unne27
    @unne27 2 ปีที่แล้ว +14

    1:29 Gdscript is a lot more similar to Python than to Javascript.

    • @ForeverZer0
      @ForeverZer0 5 หลายเดือนก่อน

      I chuckled at this part. GDScript is pretty much a superset of Python, nothing JS about it, with a very few engine-specific built-in to the interpreter. From my understanding, it was originally Python during the early development and design of the engine, but there were some obstacles regarding memory management, so they opted for a custom language based on it that they had greater control over. My personal opinion is that they would have been better off using a popular language already in wide usage,and popular, but GDScript is extremely simple for novice users to piece together scripts without programming experience, so they did succeed very well on that important point.

  • @theinktician
    @theinktician ปีที่แล้ว +2

    i dont think i have the right one. Options are missing throughout the tilemap part. I'll have to come back later. Its 4am

    • @Avraycool
      @Avraycool 11 หลายเดือนก่อน

      I think I'm seeing the same thing. We're on version 4.1.1 right now.

    • @ufoyyyccc1040
      @ufoyyyccc1040 6 หลายเดือนก่อน

      It's Godot 3.4.2

  • @jackmitchell314
    @jackmitchell314 2 ปีที่แล้ว

    Why cant I hold wasd down to move? I have to tap them repeatedly. It's probably because I'm on chromebook but idk

    • @hellishlycute
      @hellishlycute 2 ปีที่แล้ว

      are you sure you used Input.is_action_pressed() and not something slightly different?

  • @robertsiems3808
    @robertsiems3808 ปีที่แล้ว +2

    My brother in Christ, im literally learning how to Code and use all these functions on my PC that i never used and never knew existed from watching this video. And how to use godot of course as well.
    So first: im either a hidden genius, second: its not that hard to learn, or third: this video is damn good.
    I think its a combination of all 3😌
    A bit more explanation would be good tho, i always pause and rewind the video to study what exactly you did there

  • @angryman5599
    @angryman5599 ปีที่แล้ว

    Very nice tutorial, but I feel like you could've explained the animations.

  • @gurrenlaggan7869
    @gurrenlaggan7869 2 ปีที่แล้ว +2

    want to preface this by saying i am new to godot and something seems to be off with my movement code, I checked against yours and it is exactly the same, the only problem is with the velocity = velocity.normalized line, in the error list thing it says The method "normalized" isn't declared on base vector two, if anyone could help that be great. thank you for any help!

    • @Joonysuke
      @Joonysuke 2 ปีที่แล้ว +1

      I know I'm two months late, but from what I'm gathering by trying to replicate your error, is that it's caused by a typo in the method you're trying to call(i.e. "normalized()").

  • @varthshenon
    @varthshenon 2 ปีที่แล้ว +1

    My player can only move right and diagonal right up/down. I'm confused.

    • @varthshenon
      @varthshenon 2 ปีที่แล้ว +1

      I figured it out. It was the indentation.

    • @rxgravite1925
      @rxgravite1925 2 ปีที่แล้ว +1

      yeah i have the same problem and im not sure what to do ?

    • @gabrielcgs123
      @gabrielcgs123 ปีที่แล้ว

      @@rxgravite1925 In my case, I put the 2 last lines, normalize and move slide, inside the right input verification. After backspacing it to be in the func read input, it worked.

    • @StrandedClone
      @StrandedClone ปีที่แล้ว

      @@rxgravite1925 nesting

    • @rxgravite1925
      @rxgravite1925 ปีที่แล้ว

      @@StrandedClone what does that mean😭

  • @Always.Smarter
    @Always.Smarter 6 หลายเดือนก่อน

    a bit of a stretch calling this an RPG but i wish you would do more advanced tutorials and provide a github link for what you have posted

  • @crunchypopoto1716
    @crunchypopoto1716 2 ปีที่แล้ว

    Good tutorial but please fix volume...mic is really quiet and the notifications are blasting my speakers when I turn my volume up to hear better.

  • @SharkyBro952
    @SharkyBro952 ปีที่แล้ว

    how does the thing pop up at 4:48 i need help

    • @SharkyBro952
      @SharkyBro952 ปีที่แล้ว +1

      never mind its just ctrl + s

  • @louoou3956
    @louoou3956 2 ปีที่แล้ว +2

    Hi, i love your tutorial but i have a bug:
    Is the code:
    extends KinematicBody
    var velocity : Vector2 = Vector2()
    var direction : Vector2 = Vector2()
    func read_imput():
    velocity = Vector2()

    if Input.is_action_pressed("up"):
    velocity.y -=1
    direction = Vector2(0, -1)

    if Input.is_action_pressed("down"):
    velocity.y -=1
    direction = Vector2(0, 1)

    if Input.is_action_pressed("left"):
    velocity.x -=1
    direction = Vector2(-1, 0)

    if Input.is_action_pressed("right"):
    velocity.x -=1
    direction = Vector2(1, 0)

    velocity = velocity.normalized()
    velocity = move_and_slide()

    func _physics_process(delta):
    read_imput()
    App say: " The argument "delta" is never used in the functions '_physics_process'. If this is intended, prefix with an underscore: '_delta'
    How i can fix the bug ??
    Thanks

    • @StephenBain
      @StephenBain 2 ปีที่แล้ว +1

      Not necessarily a bug, just a little warning. Godot just wants to make sure you didn't plan to use "delta". If not just change it to "_delta" in the process function.

    • @amadox353
      @amadox353 2 ปีที่แล้ว +1

      i have a bug too Too few arguments for "move_and_slide()" call. Expected at least 1.

    • @ufoyyyccc1040
      @ufoyyyccc1040 6 หลายเดือนก่อน

      Near the end its: Velocity = move_and_slide(velocity * 200)

    • @ufoyyyccc1040
      @ufoyyyccc1040 6 หลายเดือนก่อน

      the delta thing should be fine

  • @Kordrean
    @Kordrean 2 ปีที่แล้ว

    Getting the Player sprite to move? I can’t get him to move.

    • @renloureiro181
      @renloureiro181 2 ปีที่แล้ว

      Idk if you still need help with this, but after you attach the script to the player scene, SAVE your file before moving out of it (it being the player scene) or it will not apply the script to the player scene.

  • @jordanlobo8512
    @jordanlobo8512 8 หลายเดือนก่อน

    awesome video, but please tone down the sfx, I had to crank up the volume because your voice is silent, then ill be deafened because of the ping sfx you used

  • @horrorstories8526
    @horrorstories8526 2 ปีที่แล้ว

    var velocity : vector2 = vector2() why does is this code red?

    • @hellishlycute
      @hellishlycute 2 ปีที่แล้ว +2

      it has to be Vector2, letter size matters

    • @horrorstories8526
      @horrorstories8526 2 ปีที่แล้ว

      @@hellishlycute thanks

  • @magick93
    @magick93 2 ปีที่แล้ว +1

    Dings are too loud! And cant hear what you're saying. Please try fixing audio.

  • @giddeo
    @giddeo ปีที่แล้ว

    please, for the love of all that is holy, turn down the volume on the ping noises

  • @dandymcgee
    @dandymcgee 2 ปีที่แล้ว +19

    Calling this an "RPG" is a bit of a stretch lol. Cool video, nevertheless. Would love to see you work on this some more.

  • @MayaKulpa
    @MayaKulpa 6 หลายเดือนก่อน

    the dings are awful my man, turn em down my guy. I liked the video though!

  • @TheKrensada
    @TheKrensada 7 หลายเดือนก่อน

    There's gotta be a simpler way to code for player input.

  • @SoloDevStudio
    @SoloDevStudio 2 ปีที่แล้ว

    One problem! My input won't add in "Input Map".Can someone help?

    • @SoloDevStudio
      @SoloDevStudio 2 ปีที่แล้ว

      and also i painted my whole leftover space into green and my programm went crashing LOL