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

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

Пікірлер: 95

  • @albert69Einstein
    @albert69Einstein2 ай бұрын

    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 ай бұрын

    Thank you! 🙂

  • @sujimayne

    @sujimayne

    Ай бұрын

    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_fan2 ай бұрын

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

  • @contentisking6702

    @contentisking6702

    Ай бұрын

    😂😂😂😂 us bro us

  • @vladventura1928

    @vladventura1928

    Ай бұрын

    Same bro 😂

  • @qmerk2661

    @qmerk2661

    27 күн бұрын

    understanding what i did = false

  • @BlessingJohnAseweje
    @BlessingJohnAseweje3 ай бұрын

    Who thinks this the best explanatory video

  • @CodingWithRuss

    @CodingWithRuss

    3 ай бұрын

    😁

  • @albert69Einstein

    @albert69Einstein

    2 ай бұрын

    This guy is awesome.

  • @Jonasgranlof
    @Jonasgranlof6 ай бұрын

    Awesome video man! Thank you!

  • @pelicanpleasant550
    @pelicanpleasant5506 ай бұрын

    Awesome tutorial! Super fun to make :D

  • @CodingWithRuss

    @CodingWithRuss

    6 ай бұрын

    Thank you!

  • @MahmudShuaib
    @MahmudShuaib8 ай бұрын

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

  • @CodingWithRuss

    @CodingWithRuss

    8 ай бұрын

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

  • @rezahelps
    @rezahelps8 ай бұрын

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

  • @CodingWithRuss

    @CodingWithRuss

    8 ай бұрын

    You're welcome :)

  • @vohuy4744

    @vohuy4744

    8 ай бұрын

    @@CodingWithRuss yahh:))

  • @Mochilinho
    @Mochilinho3 ай бұрын

    Nice tutorial, thank you

  • @CMParks10
    @CMParks106 ай бұрын

    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 ай бұрын

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

  • @anoshaz

    @anoshaz

    5 ай бұрын

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

  • @anoshaz

    @anoshaz

    5 ай бұрын

    where to find ground.png?

  • @albert69Einstein

    @albert69Einstein

    2 ай бұрын

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

  • @pysokon7714
    @pysokon77143 ай бұрын

    Thanks very helpful as an overview of Godot and coding.

  • @CodingWithRuss

    @CodingWithRuss

    3 ай бұрын

    Glad you liked it!

  • @vohuy4744
    @vohuy47448 ай бұрын

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

  • @CodingWithRuss

    @CodingWithRuss

    8 ай бұрын

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

  • @PescaterianmanOctopus
    @PescaterianmanOctopusАй бұрын

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

  • @shadowzyx3505
    @shadowzyx35054 ай бұрын

    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

    Ай бұрын

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

  • @martingoodson1651
    @martingoodson16518 ай бұрын

    This looks very interesting. Viewing it now.

  • @jak9990
    @jak99907 ай бұрын

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

  • @CodingWithRuss

    @CodingWithRuss

    7 ай бұрын

    Glad you liked it!

  • @mkaks22gamerserise16
    @mkaks22gamerserise16Ай бұрын

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

  • @CodingWithRuss

    @CodingWithRuss

    Ай бұрын

    😁

  • @Vmanko29
    @Vmanko294 ай бұрын

    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

  • @chiewcck
    @chiewcck6 ай бұрын

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

  • @rezashir3873
    @rezashir38738 ай бұрын

    good.😍🤩

  • @marspooky
    @marspooky6 ай бұрын

    Everything si amazing! Loving this tutorial!

  • @guilhermemb11

    @guilhermemb11

    5 ай бұрын

    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

    23 күн бұрын

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

  • @beegphrog3774
    @beegphrog37745 ай бұрын

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

  • @WG26Gaming
    @WG26GamingАй бұрын

    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

    29 күн бұрын

    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.

  • @chigstardan7285
    @chigstardan72858 ай бұрын

    Can you post a tutorial for a board game?

  • @danterizzi6672
    @danterizzi66722 ай бұрын

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

  • @DangerousRabbit69
    @DangerousRabbit697 ай бұрын

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

  • @sujimayne

    @sujimayne

    Ай бұрын

    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

    28 күн бұрын

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

  • @Lonewolf.7.7.7

    @Lonewolf.7.7.7

    28 күн бұрын

    And what are you laughing at ?

  • @DangerousRabbit69

    @DangerousRabbit69

    17 күн бұрын

    @@Lonewolf.7.7.7 I changed it now. I love Germany it was because I was uploading Bullshit videos like fails etc. Sorry mate Deutschland gewinnt die EM!!!

  • @haluz2281
    @haluz228123 күн бұрын

    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?

  • @danillinad5130
    @danillinad51304 ай бұрын

    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?

  • @GodotCodeSnippets
    @GodotCodeSnippets26 күн бұрын

    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!

  • @yogaadityapranata797
    @yogaadityapranata7976 ай бұрын

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

  • @WG26Gaming
    @WG26GamingАй бұрын

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

  • @CodingWithRuss

    @CodingWithRuss

    Ай бұрын

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

  • @blankpanda9334
    @blankpanda93344 ай бұрын

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

  • @ShuangCAO-xi6vf
    @ShuangCAO-xi6vfАй бұрын

    40:59 can we erase obs in for loop?

  • @carlopanganiban445
    @carlopanganiban4454 ай бұрын

    can this game run in mobile devices?

  • @DILVI14
    @DILVI142 ай бұрын

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

  • @shapeshifter8986
    @shapeshifter89865 ай бұрын

    I see much jitter in the background when scrolling

  • @samerbayoumi6378
    @samerbayoumi63786 күн бұрын

    omg..... ive been struggling to get the looping ground to work because my viewport numbers dont make any sense to my vector numbers appearing in the console... FINALLY I KNOW WHY. THis method wont work with ppl who have 2 monitors. The numbers get seriously messed up

  • @thiagoreis5208
    @thiagoreis52087 ай бұрын

    valeu

  • @toszek6113
    @toszek61136 ай бұрын

    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

    5 ай бұрын

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

  • @Cherry-jo7bz

    @Cherry-jo7bz

    2 ай бұрын

    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

    2 ай бұрын

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

  • @aldrinroxas6204
    @aldrinroxas62045 ай бұрын

    Do you have a discord server?

  • @drjater1662
    @drjater1662Ай бұрын

    a easy form to make the grounds?

  • @Joegoesgym
    @JoegoesgymАй бұрын

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

  • @CodingWithRuss

    @CodingWithRuss

    Ай бұрын

    It's godot 4.2

  • @wingardium3513
    @wingardium35132 ай бұрын

    bro can you provide c# code...

  • @Amjd-qr4rc
    @Amjd-qr4rc2 ай бұрын

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

  • @shubhrajitart3897

    @shubhrajitart3897

    Ай бұрын

    Do velocity.y -=gravity

  • @1tsKayne
    @1tsKayneАй бұрын

    32:30 What if all my obstacles are animated?

  • @ElGracindo
    @ElGracindo5 ай бұрын

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

  • @318h7

    @318h7

    4 ай бұрын

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

  • @RAGE-_
    @RAGE-_2 ай бұрын

    Is the game for mobile or PC???

  • @CodingWithRuss

    @CodingWithRuss

    2 ай бұрын

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

  • @shubhrajitart3897
    @shubhrajitart3897Ай бұрын

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

  • @CodingWithRuss

    @CodingWithRuss

    Ай бұрын

    4.2

  • @anoshaz
    @anoshaz5 ай бұрын

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

  • @narBHAKSHbeatss
    @narBHAKSHbeatss3 ай бұрын

    28:48

  • @yoskokleng3658
    @yoskokleng36585 ай бұрын

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

  • @clashchamp2844
    @clashchamp28444 ай бұрын

    Your explanation of the code u write is too poor.

  • @kaliented

    @kaliented

    2 ай бұрын

    I agree

  • @Va_Vil_On

    @Va_Vil_On

    Ай бұрын

    Why tho

  • @chigstardan7285
    @chigstardan72858 ай бұрын

    Can you post a tutorial for a board game?

  • @chigstardan7285

    @chigstardan7285

    8 ай бұрын

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

  • @dublin7655
    @dublin76555 ай бұрын

    35:09

  • @dublin7655
    @dublin76555 ай бұрын

    41:34