I got seasick and dizzy but it was still magical and I loved it
@ygres1584 жыл бұрын
well... sorry about that, glad you enjoyed it anyways ^^
@Heagan3 жыл бұрын
this looks beautiful! Could I see how you did it! I would love to make a racing game that has roads like this😅 I'm new to Godot so I'm not sure where to begin
@ygres1583 жыл бұрын
I can’t really do a tutorial since I’m also pretty new to it, like, I have done almost nothing more with Godot since this video was posted, still, I can tell you how I got this road effect, thought I must warn it’s not “game ready”, it’s not optimised in any way, there are no collisions and no easy way to implement them or position a car correctly for example. Now, the way this works: the place where the road “appears” or “fades away”, that’s your cursor as a way to control it, you could add something that moves that point instead of using the cursor though, anyways, there is where the “road pieces” spawn, and all they do is use a velocity curve to accelerate to the bottom of the screen while growing in size, after 10 “normal road pieces” have spawned, another 10 “white in the middle road pieces” spawn, this creates the white lines on the middle, for the lights the same happens, but they spawn every 60 “road pieces”, then they are removed after reaching the bottom of the screen. To get the “inclined road effect” I rotate the “road pieces” depending on where they have spawned and then “un-rotate” them as they get closer. There is a glitch that you can see on the video a couple of times where you can see the road that is far away through the road that is closer, this happens because every time something new spawns it’s automatically put on top of everything else, so you have to manually push it back, the thing is, this Y-sort can only sort around 8000 things, so once it runs out of available sorting spaces it resets and does that glitch, I’m sure there is a workaround to do this better, but I didn’t really care since it this was just a test. Now the moon, comets and stars are child of a node permanently rotating, the moon is always visible, the comets alternate at random intervals between visible and invisible, and the stars are just spawn points that spawn an animated node at their current position outside of the rotating node, so they stay still while doing the animation. Now to pixelate everything go to project -> project settings -> display -> window -> mode and set it to “viewport”, you must also set the “width” and “height” to something way smaller than your “test width” and “test height”, and… yeah, that’s all there is, smoke and mirrors basically. Here: drive.google.com/file/d/14zDqCmBSmdm4rClcIqyXYVRF6dIYiA26/view?usp=sharing You can download the project, can’t guarantee it will be up forever tho, I added some comments that should help a little, some resources names are not in English but you should easily understand what they are. Also, for some good tutorials, I recomend HeartBeast's youtube channel specifically it's rpg tutorial, since it's what got me started, then I also like to watch Miziziziz, codat, Game Development Center, Garbaj and GDQuest, though if you have found mine you probably have already found most of those channels xD Anyways, hope this helps, and good luck with your game!
@Heagan3 жыл бұрын
@@ygres158 Its very clever I think! 🙌 You've helped me a lot, I think I have some idea on how to make this as well now, thank you very much for explaining things to me I'll have a look at the channels you recommended as well 😄