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

Поделиться
HTML-код
  • Опубликовано: 8 июн 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

Комментарии • 93

  • @albert69Einstein
    @albert69Einstein 2 месяца назад +10

    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  2 месяца назад +1

      Thank you! 🙂

    • @sujimayne
      @sujimayne 24 дня назад

      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.

  • @Cote_fan
    @Cote_fan Месяц назад +13

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

  • @BlessingJohnAseweje
    @BlessingJohnAseweje 2 месяца назад +15

    Who thinks this the best explanatory video

  • @MahmudShuaib
    @MahmudShuaib 7 месяцев назад +3

    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

  • @Jonasgranlof
    @Jonasgranlof 5 месяцев назад +1

    Awesome video man! Thank you!

  • @pelicanpleasant550
    @pelicanpleasant550 6 месяцев назад +2

    Awesome tutorial! Super fun to make :D

  • @PescaterianmanOctopus
    @PescaterianmanOctopus 10 дней назад +2

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

  • @rezahelps
    @rezahelps 7 месяцев назад +2

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

  • @Mochilinho
    @Mochilinho 2 месяца назад +1

    Nice tutorial, thank you

  • @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 5 месяцев назад +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 2 месяца назад

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

  • @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 :)

  • @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 24 дня назад

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

  • @jak9990
    @jak9990 7 месяцев назад +1

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

  • @martingoodson1651
    @martingoodson1651 7 месяцев назад +1

    This looks very interesting. Viewing it now.

  • @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

  • @mkaks22gamerserise16
    @mkaks22gamerserise16 21 день назад +1

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

  • @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?

  • @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 4 месяца назад

    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?

  • @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".

    • @haluz2281
      @haluz2281 2 дня назад

      @@guilhermemb11 I figured that that happened just as I changed my monitor from 60hz to 165hz :D not sure why, but I had to tweek some numbers to optimize it for my monitor

  • @haluz2281
    @haluz2281 День назад

    When the game plays, obstacles have this weird halo effect or some kind of nauseating ghosting. Also the game kinda lags a jitters, even though I have a good PC... any idea what could be causing that?

  • @WG26Gaming
    @WG26Gaming 9 дней назад +1

    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  7 дней назад +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.

  • @danterizzi6672
    @danterizzi6672 2 месяца назад

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

  • @chigstardan7285
    @chigstardan7285 7 месяцев назад +1

    Can you post a tutorial for a board game?

  • @rezashir3873
    @rezashir3873 7 месяцев назад +1

    good.😍🤩

  • @ShuangCAO-xi6vf
    @ShuangCAO-xi6vf 11 дней назад

    40:59 can we erase obs in for loop?

  • @DILVI14
    @DILVI14 Месяц назад

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

  • @WG26Gaming
    @WG26Gaming 14 дней назад +1

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

    • @CodingWithRuss
      @CodingWithRuss  14 дней назад +1

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

  • @GermanBullshit
    @GermanBullshit 7 месяцев назад +10

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

    • @sujimayne
      @sujimayne 24 дня назад

      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 ?

  • @drjater1662
    @drjater1662 10 дней назад

    a easy form to make the grounds?

  • @blankpanda9334
    @blankpanda9334 3 месяца назад

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

  • @toszek6113
    @toszek6113 5 месяцев назад +1

    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

  • @carlopanganiban445
    @carlopanganiban445 3 месяца назад

    can this game run in mobile devices?

  • @thiagoreis5208
    @thiagoreis5208 6 месяцев назад

    valeu

  • @yogaadityapranata797
    @yogaadityapranata797 5 месяцев назад +3

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

  • @GodotCodeSnippets
    @GodotCodeSnippets 5 дней назад

    This is no longer properly working in godot 4.2.2... the ground for some reason always seems to dissapear (i had the problem when i was making this myself after your tutorial... I thought i was doing something wrong but it turns out there is something else going on. when i downloaded your code from github i had the same issue happening. would you be willing to take a look at this and update it?) Great video tutorial other than that!

  • @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 😢😢😢

  • @Joegoesgym
    @Joegoesgym 17 дней назад

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

  • @wingardium3513
    @wingardium3513 Месяц назад +1

    bro can you provide c# code...

  • @aldrinroxas6204
    @aldrinroxas6204 4 месяца назад

    Do you have a discord server?

  • @1tsKayne
    @1tsKayne 11 дней назад

    32:30
    What if all my obstacles are animated?

  • @shubhrajitart3897
    @shubhrajitart3897 17 дней назад

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

  • @anoshaz
    @anoshaz 4 месяца назад

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

  • @dublin7655
    @dublin7655 4 месяца назад

    35:09

  • @RAGE-_
    @RAGE-_ 2 месяца назад

    Is the game for mobile or PC???

    • @CodingWithRuss
      @CodingWithRuss  2 месяца назад +1

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

  • @ElGracindo
    @ElGracindo 5 месяцев назад +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

  • @agalimba
    @agalimba 2 месяца назад

    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.

  • @chigstardan7285
    @chigstardan7285 7 месяцев назад

    Can you post a tutorial for a board game?

    • @chigstardan7285
      @chigstardan7285 7 месяцев назад

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

  • @narBHAKSHbeatss
    @narBHAKSHbeatss 2 месяца назад

    28:48

  • @dublin7655
    @dublin7655 4 месяца назад

    41:34