There are several different 2D background types, which I talk through in this video (spoiler, parallax is the best) #shorts
Пікірлер: 63
@loyaleling Жыл бұрын
Terraria is a great example of this because in the settings you can switch between modes
@wn44267 ай бұрын
I love it. I think having many layers is the best option, but my PC isn't amazing so having the option to flatten or remove it helps SOOO much with performance
@BurningMarsh7 ай бұрын
@@wn4426not to be rude but you must have a laptop or something cause my switch and xbox can handle them both perfectly fine I know they were optimized for those but I feel even a lower-end desktop should be able to handle base terraria well
@wn44267 ай бұрын
@@BurningMarsh nah its just an old pc
@gumbitoicic99777 ай бұрын
@@BurningMarshlaptops are pcs
@cloudy70927 ай бұрын
not really, if you put paralax at 0 it still moves
@stumonster60916 ай бұрын
If your looking to impress you tech high school class, parallax is godly. I made a 2D game for my ITM major, it was terrible, hardly anything worked how i wanted and it was mostly a sprite test. But one thing I had from the beginning, great parallax backgrounds and even some foreground. It easily was the thing that got me as high a mark as I got, and genuinely I loved the look of it.
@rafeverao41056 ай бұрын
I just love the little bird character. I'm learning how to do something I love while watching a cute lil guy. love him.
@sakuya90172 жыл бұрын
I'm trying to learn how to make the parallax effect with unity. Nice tid bit of info here, thanks!
@darkfrei22 жыл бұрын
Very nice! Can you show how to code it?
@jameswales2122 Жыл бұрын
There's a few ways to do this. I would do it by taking the change in the position of the camera and moving each layer with the camera but at a decreased amount of change
@zergrush87097 ай бұрын
I’ve heard that you use a 3d camera and just place objects that move slower further away from the camera and objects that move faster closer to the camera. You can then also put stuff in the foreground too (in front of the player). I believe this technique is used in hollow knight.
@razacmarx14416 ай бұрын
@@zergrush8709 why not just use some functions, for example, foreground = f(x) =x, background f(x) =x/2, or similar functions to calculate map positions from zhe theoretical player position. You could also use mod(x, y) to generate a background loop, etc.
@nottechytutorials Жыл бұрын
I never thought about different layers like that. Thanks for the tips.
@mmoommee66625 күн бұрын
Yoo those are my parallax backgrounds, thanks for using it!
@LandoGame2 ай бұрын
Games such as hollow knight despite being a 2D game are actually made in 3D so they can use multi-layer parallax Extremely well by Literally putting layers that are further away, further away from the camera
@justaway_of_the_samurai6 ай бұрын
The last one adds depth, but kinda unrealistically. In reality there wouldn't be several mountains in the background being displaced that quickly relative to each other and the camera. It IS still a good option though for placing other various background images with closer range in the scene. So you can use this for layering trees in a forest, with a single mountain in the background, or a brick wall that the player is passing directly in front of.
@ebobab95644 ай бұрын
Yes but that is quite solvable, no? Instead of having a rigid mountain just have it move very slowly whereas the trees move much faster
@eboatwright_2 жыл бұрын
Really awesome! :D
@Mernom5 ай бұрын
I remember figuring this stuff out in the Jazz Jackrabbit 2 map editor when I was a kid.
@chefdunsparce42546 ай бұрын
Peak background music
@purplerain31096 ай бұрын
Moving in a straight line vs. A diagonal line vs. moving in a circle!
@valletas Жыл бұрын
The first level of my game uses like 7 background layers and 1 front layer for parallax
@adityapawar46925 ай бұрын
If u use each type based on the player traveling distance like if the player is traveling from city to city its should be multi layer showing he is covering great distance, or if the player is moving in city it should be single layer as he is moving short distance (across the city) or if he is in a cave or dungeon it should be fixed or flat as he is moving a single structure.
@user-gy9dh2ox6pАй бұрын
Who made the assets? I wanna make a game with that bird
@snowset6755 ай бұрын
There aren’t a lot of channels on shorts about game design, and as I’m trying to learn Godot, I could use your videos’ help. Subbed!
@brandonclark1714 ай бұрын
You should show each onion of the code, background, and layers.
@BlueAndy_5 ай бұрын
Isnt the fixed background moving with the same speed as the camera?
@veggiet20095 ай бұрын
Also can implement alternate universe physics by making the background move faster than the player... Definitely use sparingly
@samlewis64876 ай бұрын
You can make easy parallax by just having the game exist in a 3d space with 2d motion and having the background be literally behind the foreground
@poshpolygon14942 жыл бұрын
Way to go!!! 50th Like
@poshpolygon14942 жыл бұрын
It really gives detail
@ngohieu81656 ай бұрын
Elonmusk background: background moving reverse direction
@dungeon_delvers6 ай бұрын
Hmm, flat feels close, each type of parallax pushes it out farther, and fixed feels the most distanced. I wonder what inverted parallax would feel like? Either the opposite direction or quicker than the camera
@george366159846 ай бұрын
Inverted would feel weird, the fastest movement being from the farthest background would probably make it seem like the character is spinning the camera while going in a straight line something. Or there would be some sort of disconnect like with optical illusions I think.
@Isaak092311 ай бұрын
I love your discord server :)
@griswoldthegoblin94207 ай бұрын
Did you make a tutorial on how to make such a simple platformer?
@appledrawss13536 ай бұрын
quick question: *how* do you make multi-layer parallax
@MemeCheryl6 ай бұрын
Does the parallax run a check every frame to see if yout character is still on screen?
@ZaneDragonBorn4 ай бұрын
Do these rely on the plastyer staying in place and world move around them or can the player move around with a parallax
@cesarsalad Жыл бұрын
would do if i knew how to do it 💀
@treymtz7 ай бұрын
Need help? If your on Unity, there are many example scripts ready to go and all you need to do is slap it on a gameobject to get it working. There are simple ones that work quick and easy, as well as more complex ones that allow for customization.
@cesarsalad7 ай бұрын
damn, thanks
@GreenGoblinCoryintheHouse6 ай бұрын
This channel makes me wanna leave everything and get on game dev but i suck at coding. It will be a nightmare.
@mars44805 ай бұрын
Flat is best for rooms, fixed is best for short periods (so it still looks livley) for very far backrounds, like oceans, forest tops, deserts etc. Basicly the horizon (tho can work for other) Single layer is classic but basic, its great for runner levels! And multi layer is great for, as seen here, for backrounds like mountains, forests, human structures and other- pretty obviously- layerd backrounds. So all can! Be fluid with your work! Dont be scared to try something new!
@user-ly7vp5ng2z5 ай бұрын
also topdown games?
@Display_Name774 Жыл бұрын
Interesting even tho I'm looking at the parallax mod for Kerbal space program
@diagojonathan6 ай бұрын
Can you make the background move on its own, like in terraria
@Freelancer-devАй бұрын
❤
@TheLoneBit Жыл бұрын
Kirby: Nightmare in Dreamland was my favorite game as a kid. I beat it from beginning to end several times. Good times. Rainbow Resort was always a good song from the track.
@yagami11603 ай бұрын
multilayer parallax was the first thing I developed in first month of learning coding
@SoftHyphen.3 ай бұрын
Difficult? Just steal the code from some kid on the internet
@randommewtwo7 ай бұрын
Kaiso parallax, where every pixel moves at its own speed
@sugarpoyon20777 ай бұрын
Where can I see that? Sounds pretty interesting
@AizzurasReaper7 ай бұрын
@@sugarpoyon2077 I think it was a joke.
@sugarpoyon20777 ай бұрын
@@AizzurasReaper I w a n n a s e e t h a t
@joshuakelly93905 ай бұрын
It really upsets me how much bad advice this guy gives. At least this one was just a "what not to do" vid
@HunterGoodin7 ай бұрын
If you’re talking about backgrounds, zoom out the camera. The focus of this educational content isn’t the player, it’s the background. The furthest back layer is barely present. Also don’t have platforms that take up most of the screen when you jump onto them.