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