How to Make a Google Chrome T-Rex Style Sidescroller In Godot | Beginner Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 มิ.ย. 2024
  • Learn the basics of Godot by making a side scroller game from scratch.
    The code for the game is built from scratch and will re-create all the features of the t-rex game. This will use a parallax background node to create the scrolling background with a 3D effect. I'll have a spawner to generate enemies as well as collision detection.
    Code and assets for this video: github.com/russs123/dino_run_tut
    Credits for assets:
    background - jesse-m.itch.io/jungle-pack
    dinos - arks.itch.io/dino-characters
    obstacles - free-game-assets.itch.io/free...
    font - www.dafont.com/retro-gaming.font
    sound - freesound.org/people/MATRIXXX...
    Timestamps:
    0:00 Intro
    0:23 Parallax Background
    3:15 Dinosaur
    08:15 Scrolling Ground
    14:22 Obstacle Scenes
    17:02 Writing Code
    20:30 Heads Up Display
    27:25 Obstacle Spawner
    41:30 Collision Detection
    44:10 Game Over Scene
    48:02 High Score

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

  • @Cote_fan
    @Cote_fan หลายเดือนก่อน +10

    Tutorial : 40minutes
    Me trying to make the exact game : 40hours

  • @BlessingJohnAseweje
    @BlessingJohnAseweje 2 หลายเดือนก่อน +14

    Who thinks this the best explanatory video

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

    The very best part about this is how he uses iterative programming. He focuses on one thing and gets it to work.
    Other instructors forget that some of us new to godot(or c# or whatever game engine) need to focus on a single step. See how that step works and then move to next step.
    Ive experienced other instructors(especially in unity tutorials) combine 3 or more steps and then save and then run.
    To me, this style feels like they are in a rush. the whole point of the tutorial is teaching(conveying information). Russ understands this and is an excellent instructor. Thanks !!!

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

      Thank you! 🙂

    • @sujimayne
      @sujimayne 17 วันที่ผ่านมา

      Unfortunately, his programming practices are not the best. Hopefully, Russ, you get to revisit this game with using some things like clamping, knowing how to use inputs when game is paused, removing redundant code, not forgetting to change how pixelated text texture is rendered, adding background music that autoplays, auto replays and auto restarts on new game, etc.

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

    Awesome video man! Thank you!

  • @pelicanpleasant550
    @pelicanpleasant550 6 หลายเดือนก่อน +2

    Awesome tutorial! Super fun to make :D

  • @MahmudShuaib
    @MahmudShuaib 7 หลายเดือนก่อน +2

    Thanks Ross. I remember the background assets from a python tutorial. Will surely practice this lesson today!!!!!! yay!!!!

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

      That's right, I used this background in my turn based battle game in python! :) I really like that asset pack

  • @rezahelps
    @rezahelps 7 หลายเดือนก่อน +2

    This is really a great tutorial, I learned a lot, thanks Mr. Russ

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

      You're welcome :)

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

      @@CodingWithRuss yahh:))

  • @CMParks10
    @CMParks10 5 หลายเดือนก่อน +15

    FYI - The image sizes for the parallax background are 382 x 216 when downloaded. In the Inspector Node2D.Scale needs to be 3x. The math still works to be 1152 pixels wide, so the mirroring value in the tutorial is correct.
    But since the image is 382 when clicking on the Sprite2D Texture displaces 384x286 I originally set my mirroring value to 384, which caused me some graphical issues. Just leaving this here in case someone else runs into the same issue.
    Thank you for the great tutorial!
    EDIT: Also, ground.png is not in the Jungle assets download. I assume this is a custom made image? I cloned your github repo and was able to get it from there, but I did not see it in the Jungle assets, unless I missed it.

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

      3 minutes into the video i literally restarted the tutorial rofl.. thank you brother!

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

      где найти ground.png?

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

      where to find ground.png?

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

      @@anoshaz i had to make one. it wasnt in to pack.

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

    Nice tutorial, thank you

  • @PescaterianmanOctopus
    @PescaterianmanOctopus 3 วันที่ผ่านมา +2

    Awesome tutorial russ.
    Any chance you can make a tutorial for an endless runner like Robot Unicorn Attack?

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

    Thanks very helpful as an overview of Godot and coding.

  • @vohuy4744
    @vohuy4744 7 หลายเดือนก่อน +2

    All of your videos are good, I hope you make more videos related to games :)

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

      Thank you! Yes, more game dev videos are in progress :)

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

    This looks very interesting. Viewing it now.

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

    Hello Russ !
    First of all, thanks a lot for your tutorials, I'm following them one by one to properly learn Goot before jumping into my own games, and they're really helpful

    • @sujimayne
      @sujimayne 17 วันที่ผ่านมา

      You should do exactly that. He has talent for making games, not so much for programming.

  • @mkaks22gamerserise16
    @mkaks22gamerserise16 14 วันที่ผ่านมา +1

    wow very great tutrioal now i can train my copy ninja skills

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

    Thanks You sooo much.
    This ist fantastic ! Thanks so much

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

    What is the appropriate size for the background image to suit all phone screen ,if I were to make a mobile game?

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

    Hey im working on an endless runner too and i have a question about performances, im trying to limit the amout of obstacle with a max size for the array but even if im erasing obs from the array the condition for spawning is not true, if you have any idea it would be a great help !
    Great tutorial tbh it really helps me to understand correctly every step for this type of game

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

    Everything si amazing! Loving this tutorial!

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

      I had this problem too, it turned out I had missed a point in the speed of some background, so it was "9" instead of "0.9".

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

    hey i am pretty much new to godot, how did you create the texture styles in 44:45, i only have normal

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

    Hello , in project like you on godot 3.5 "last_obs.position.x" == 0 always
    can you explain how to get global position of this or 0 is what we need?

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

    good.😍🤩

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

    Can you post a tutorial for a board game?

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

    Hi! Nice video. By the way, I copied you code but my obstacles aren't appearing. What could it be?

  • @WG26Gaming
    @WG26Gaming 2 วันที่ผ่านมา

    hey my images are smaller, my plx images are 384x216 (i saw you have around 1152x648), do i have to do any process or upscaling type thing before importing or is there any setting i needs to do in the engine itself ?, and as i run the scene the images are smaller in the corner

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

      You can scale the node in godot but it may be easier in this case to just scale the image up first in some kind of image editor.

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

    Do you have a discord server where we can join and ask some questions?

  • @ShuangCAO-xi6vf
    @ShuangCAO-xi6vf 4 วันที่ผ่านมา

    40:59 can we erase obs in for loop?

  • @WG26Gaming
    @WG26Gaming 7 วันที่ผ่านมา +1

    can i use the smae assets you used for commericl use ?!

    • @CodingWithRuss
      @CodingWithRuss  7 วันที่ผ่านมา +1

      They aren’t mine, so I can’t say. Ive linked them in the description so you can check with the original artist.

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

    In 36:40 the part of “ adjust difficulty ()”does not works i dont know why someone help

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

    great tutorial, but i wanna ask.. is that godot 3.5 or 4.. thanks

  • @GermanBullshit
    @GermanBullshit 6 หลายเดือนก่อน +10

    Interesting and good video but I think we got a different definition of the word "Beginner" hahaha

    • @sujimayne
      @sujimayne 17 วันที่ผ่านมา

      His programming practices and the way he codes isn't great, so you are better off following something else anyway. I've purposefully following this, being a programmer but new to Godot, had a ton of stuff to fix that he didn't know how to do and had a ton of stuff to do that he forgot to.

    • @Lonewolf.7.7.7
      @Lonewolf.7.7.7 7 ชั่วโมงที่ผ่านมา

      Are you calling Germany bullshit, I'm asking your nick

    • @Lonewolf.7.7.7
      @Lonewolf.7.7.7 7 ชั่วโมงที่ผ่านมา

      And what are you laughing at ?

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

    can this game run in mobile devices?

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

    Do you have a discord server?

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

    I need help because when i use START_SPEED as a 10 my character and camera moving fast as hell but when i use 0.3 or smth like that its ok but my score is 0 :_:

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

      i ran into this issue to did you end up getting it fixed?

    • @Cherry-jo7bz
      @Cherry-jo7bz หลายเดือนก่อน +1

      You change the start speed to whatever value you want and give the score multiplier the same value. It has to be atleast 1 though because you can’t divide by 0 as you use that value a bit later in the code.

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

      @@Cherry-jo7bz ok thank you i will give it a try

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

    I see much jitter in the background when scrolling

  • @Joegoesgym
    @Joegoesgym 10 วันที่ผ่านมา

    Wich IDE and wich version of the IDE do you use?

  • @drjater1662
    @drjater1662 3 วันที่ผ่านมา

    a easy form to make the grounds?

  • @Amjd-qr4rc
    @Amjd-qr4rc หลายเดือนก่อน

    Help plz
    When i wrote velocity.y += gravity * delta
    It give me (the identifier "velocity" isn't declared in the current scope)
    Plz help i did all what u said in the video 😢😢😢

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

    bro can you provide c# code...

  • @1tsKayne
    @1tsKayne 4 วันที่ผ่านมา

    32:30
    What if all my obstacles are animated?

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

    valeu

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

    что делать если динозавр не прыгает

  • @RAGE-_
    @RAGE-_ หลายเดือนก่อน

    Is the game for mobile or PC???

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

      It's for PC, I haven't tried making mobile games

  • @shubhrajitart3897
    @shubhrajitart3897 10 วันที่ผ่านมา

    What's the version bro 😅😢
    I am using v3.5.3

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

    for me the game has diferent speeds on diferent pc's, dont know what i did haha

    • @318h7
      @318h7 3 หลายเดือนก่อน +1

      the moving code is not multiplying the speed by delta. classical

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

    28:48

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

    Not clear though

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

    it is really hard to learn something new. (from web developer) ... :))

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

    Your explanation of the code u write is too poor.

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

      I agree

    • @Va_Vil_On
      @Va_Vil_On 8 วันที่ผ่านมา

      Why tho

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

    Can you post a tutorial for a board game?

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

      @@CHICKENSY chess, or a game like backgammon or ludo.

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

    41:34

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

    35:09