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
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
2 ай бұрын
Thank you! 🙂
@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.
Tutorial : 40minutes Me trying to make the exact game : 40hours
@contentisking6702
Ай бұрын
😂😂😂😂 us bro us
@vladventura1928
Ай бұрын
Same bro 😂
@qmerk2661
27 күн бұрын
understanding what i did = false
Who thinks this the best explanatory video
@CodingWithRuss
3 ай бұрын
😁
@albert69Einstein
2 ай бұрын
This guy is awesome.
Awesome video man! Thank you!
Awesome tutorial! Super fun to make :D
@CodingWithRuss
6 ай бұрын
Thank you!
Thanks Ross. I remember the background assets from a python tutorial. Will surely practice this lesson today!!!!!! yay!!!!
@CodingWithRuss
8 ай бұрын
That's right, I used this background in my turn based battle game in python! :) I really like that asset pack
This is really a great tutorial, I learned a lot, thanks Mr. Russ
@CodingWithRuss
8 ай бұрын
You're welcome :)
@vohuy4744
8 ай бұрын
@@CodingWithRuss yahh:))
Nice tutorial, thank you
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
5 ай бұрын
3 minutes into the video i literally restarted the tutorial rofl.. thank you brother!
@anoshaz
5 ай бұрын
где найти ground.png?
@anoshaz
5 ай бұрын
where to find ground.png?
@albert69Einstein
2 ай бұрын
@@anoshaz i had to make one. it wasnt in to pack.
Thanks very helpful as an overview of Godot and coding.
@CodingWithRuss
3 ай бұрын
Glad you liked it!
All of your videos are good, I hope you make more videos related to games :)
@CodingWithRuss
8 ай бұрын
Thank you! Yes, more game dev videos are in progress :)
Awesome tutorial russ. Any chance you can make a tutorial for an endless runner like Robot Unicorn Attack?
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
Ай бұрын
You should do exactly that. He has talent for making games, not so much for programming.
This looks very interesting. Viewing it now.
Thanks You sooo much. This ist fantastic ! Thanks so much
@CodingWithRuss
7 ай бұрын
Glad you liked it!
wow very great tutrioal now i can train my copy ninja skills
@CodingWithRuss
Ай бұрын
😁
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
What is the appropriate size for the background image to suit all phone screen ,if I were to make a mobile game?
good.😍🤩
Everything si amazing! Loving this tutorial!
@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
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
hey i am pretty much new to godot, how did you create the texture styles in 44:45, i only have normal
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
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.
Can you post a tutorial for a board game?
Hi! Nice video. By the way, I copied you code but my obstacles aren't appearing. What could it be?
Interesting and good video but I think we got a different definition of the word "Beginner" hahaha
@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
28 күн бұрын
Are you calling Germany bullshit, I'm asking your nick
@Lonewolf.7.7.7
28 күн бұрын
And what are you laughing at ?
@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!!!
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?
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?
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!
great tutorial, but i wanna ask.. is that godot 3.5 or 4.. thanks
can i use the smae assets you used for commericl use ?!
@CodingWithRuss
Ай бұрын
They aren’t mine, so I can’t say. Ive linked them in the description so you can check with the original artist.
Do you have a discord server where we can join and ask some questions?
40:59 can we erase obs in for loop?
can this game run in mobile devices?
In 36:40 the part of “ adjust difficulty ()”does not works i dont know why someone help
I see much jitter in the background when scrolling
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
valeu
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
5 ай бұрын
i ran into this issue to did you end up getting it fixed?
@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
2 ай бұрын
@@Cherry-jo7bz ok thank you i will give it a try
Do you have a discord server?
a easy form to make the grounds?
Wich IDE and wich version of the IDE do you use?
@CodingWithRuss
Ай бұрын
It's godot 4.2
bro can you provide c# code...
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
Ай бұрын
Do velocity.y -=gravity
32:30 What if all my obstacles are animated?
for me the game has diferent speeds on diferent pc's, dont know what i did haha
@318h7
4 ай бұрын
the moving code is not multiplying the speed by delta. classical
Is the game for mobile or PC???
@CodingWithRuss
2 ай бұрын
It's for PC, I haven't tried making mobile games
What's the version bro 😅😢 I am using v3.5.3
@CodingWithRuss
Ай бұрын
4.2
что делать если динозавр не прыгает
28:48
it is really hard to learn something new. (from web developer) ... :))
Your explanation of the code u write is too poor.
@kaliented
2 ай бұрын
I agree
@Va_Vil_On
Ай бұрын
Why tho
Can you post a tutorial for a board game?
@chigstardan7285
8 ай бұрын
@CHICKENSY chess, or a game like backgammon or ludo.
35:09
41:34