Game Dev Secrets: A trick for environmental immersion!

Поделиться
HTML-код
  • Опубликовано: 24 окт 2024

Комментарии • 211

  • @InboundShovel
    @InboundShovel  2 месяца назад +181

    Wishlist Isadora's Edge on Steam!
    store.steampowered.com/app/3125320/Isadoras_Edge/
    And you can follow the Kickstarter here: www.kickstarter.com/projects/inboundshovel/isadoras-edge
    Thank you!

    • @stblueberry6992
      @stblueberry6992 2 месяца назад +1

      i just cannot wait to play this, this looks just so great in development! keep it up lad!

    • @fabianosoriani
      @fabianosoriani 2 месяца назад +1

      @inboundshovel wishlisted it! Your art/sprites are great who does it?

    • @technically7918
      @technically7918 2 месяца назад

      I've got to stop watching brainrot bro...

  • @Leonagraphy
    @Leonagraphy 2 месяца назад +1952

    As a hk player and fan, I can confirm that paralaxing does WONDERS to immerse players

    • @Remorin.
      @Remorin. 2 месяца назад +92

      As another person that plays hollow knight, I agree with this

    • @idontwantobefishingforfish
      @idontwantobefishingforfish 2 месяца назад +1

      Also blurring
      Blur the lower background layers

    • @battlebots1
      @battlebots1 2 месяца назад +79

      I was like why does being from Hong Kong make you an expert in immersion 😂

    • @shikhamaitra8769
      @shikhamaitra8769 2 месяца назад +17

      My puny brain thought "haiku?"

    • @Idkwhattoput5229
      @Idkwhattoput5229 2 месяца назад +21

      Its also nice to see a random tower in the distance and it looks very realist-
      Wait why did the gate close

  • @mybadsomething5854
    @mybadsomething5854 2 месяца назад +1077

    My brain auto parallaxed the mountains.

    • @tam_69420
      @tam_69420 2 месяца назад +130

      im gonna use you as an excuse not to bother to implement parallaxing

    • @mybadsomething5854
      @mybadsomething5854 2 месяца назад

      @@tam_69420 That's fair.

    • @snowball2280
      @snowball2280 2 месяца назад

      @@tam_69420
      Notice - the user does not meet the requirements to play this game
      To play this game, the user must have the auto-parallax feature installed up to version 1.1.23 within their brains subconscious folder

    • @olivers.7821
      @olivers.7821 2 месяца назад

      ​@@tam_69420 that's the spirit 👏

    • @UnClassyfied
      @UnClassyfied 2 месяца назад +36

      Literally. Had to do a double take to realize there wasn't already parallaxing

  • @Nadeli0
    @Nadeli0 2 месяца назад +223

    A cool trick I learned, if you are making a 2.5D game you can push the backgrounds further back in 3D space and get the same effect with no extra code :)

    • @jesusvera7941
      @jesusvera7941 2 месяца назад +13

      thats what HK actually does.

    • @Nadeli0
      @Nadeli0 2 месяца назад +1

      @@jesusvera7941 What does HK stand for?

    • @jesusvera7941
      @jesusvera7941 2 месяца назад +10

      @@Nadeli0 Hollow Knight

    • @Nadeli0
      @Nadeli0 2 месяца назад

      @@jesusvera7941 Ah thanks! :)

    • @soup9911
      @soup9911 Месяц назад +16

      ​@@Nadeli0Hong Kong (I am spreading misinformation)

  • @disneygamerdonut214
    @disneygamerdonut214 2 месяца назад +446

    I think it’s cool that a slower background makes the character feels slower too.

  • @escapeundergroundgame
    @escapeundergroundgame 2 месяца назад +111

    Making backgrounds move at different speeds relative to the foreground is crucial in 2D games for creating depth and immersion and enhancing the visual experience.

  • @BraydenDarrell
    @BraydenDarrell 2 месяца назад +154

    The faster speed would work really well for a cave! I love these game dev secrets and I’ve definitely been using them for my own game

  • @HatoBumpkin
    @HatoBumpkin 2 месяца назад +98

    Imagine being a game developer and not knowing about parallaxing until you saw this video and you were like "OOOOHHHHH."

  • @Ervo
    @Ervo 2 месяца назад +18

    One thing I like is that if you reverse the parallax speeds (make the distant things move faster) it gives the sensation that you are moving along the surface of a cylinder, if you manage to adjust the speeds well and create a level of vertical ascent that is repeated horizontally, you can create a brutal immersive effect (and a very cool level too!!)

  • @bazingaswine424
    @bazingaswine424 2 месяца назад +24

    Shovel Knight also uses this very well and it really does give the backgrounds so much more depth

  • @admiralensin.
    @admiralensin. 2 месяца назад +40

    Imma be honest, i didn't even notice until you pointed it out

    • @Qrangg
      @Qrangg 2 месяца назад +7

      same, but then when i looked back, i understood

    • @bee5464
      @bee5464 2 месяца назад +5

      It's really one of those details that until it's done badly you never notice.

  • @Woomvee
    @Woomvee 2 месяца назад +7

    I thought the first background was good, but those paralaxed ones are phenomenal, cant wait for the game!

  • @codymitchellaudio
    @codymitchellaudio 2 месяца назад +2

    I love these videos. I'm not a game dev, but as a composer who doesn't have much hands on experience with games yet, I feel like I'm learning some good stuff about games. Thanks for the awesome videos!

  • @smob0
    @smob0 2 месяца назад +19

    Don't forget you can do this to the foreground too, just be careful not to make it too cluttered.

    • @rickraydubs
      @rickraydubs 2 месяца назад +1

      Clutter it up to no end!

    • @hiiambarney4489
      @hiiambarney4489 Месяц назад +2

      Foreground parallax is not very reasonable for most games. Only in very specific places.
      The problem you will quickly run into is that if you have some vertical movement going on, you will run into extreme issues.

    • @smob0
      @smob0 Месяц назад

      @@hiiambarney4489 it is a lot harder to use than background for sure, but I have seen it done to good effect. I often see it near screen transitions and caves, where the camera is locked in some way, and the foreground elements can give that claustrophobic feeling without actually getting in your way.

    • @Vaveng_
      @Vaveng_ Месяц назад

      @@hiiambarney4489 depends on how it
      technically implemented

  • @HowDoYouTurnThisOn_
    @HowDoYouTurnThisOn_ 2 месяца назад +12

    This reminds me of how one of Mega Man X2's selling points was that, thanks to the CX4 chip in its cartridge, it was able to have parallax effects in its backrounds without melting the SNES CPU in the process, in addition to other graphical effects like transparency.

  • @CallytheCalicoCat
    @CallytheCalicoCat 2 месяца назад +4

    This game definitely looks like it’ll be really fun to play when it comes out! I can’t wait!

  • @dubstepdoughnut
    @dubstepdoughnut 2 месяца назад +7

    This is a certified parallax moment

  • @GuiriTV
    @GuiriTV 2 месяца назад +3

    Thank you for fulfilling my request on covering this topic! This was one of the first things I learned during game dev that amazed me on the creative solutions game developers have crafted. Look forward to more content!

    • @InboundShovel
      @InboundShovel  2 месяца назад +1

      Thanks for the request, and glad I could help! :D

  • @BoysegeSacraft
    @BoysegeSacraft 2 месяца назад +6

    I love this effect SOOO much!

  • @bgray6936
    @bgray6936 2 месяца назад +3

    I really appreciate your videos, they are so useful. I'll definitely be grabbing your game when it comes out, and I hope one day I'll have a game to show off to you

  • @tevor09
    @tevor09 2 месяца назад +4

    Keep making these videos, they are very useful

  • @cortanathelawless1848
    @cortanathelawless1848 2 месяца назад

    I appreciate the quick explanations and good examples so much

  • @i_am_a_humannothing_suspic4963
    @i_am_a_humannothing_suspic4963 2 месяца назад +1

    I always wondered how that effect was made! Love all your videos

  • @CheezyDonutz
    @CheezyDonutz 2 месяца назад +2

    I've seen parallaxing in game settings but never actually knew what it meant lol. Now I know.

  • @ZizZap4
    @ZizZap4 2 месяца назад +1

    As an aside, you can also parallax into the foreground as well by upping an object's movement speed.

  • @Akiga_games
    @Akiga_games Месяц назад

    Parallaxing is so fun! I enjoy seeing it in video games! Nice video here!

  • @sepiasmith5065
    @sepiasmith5065 2 месяца назад

    oh wow the way my brain actually made the mountains feel bigger or smaller for those last two examples... i love it

  • @ahmedamir7
    @ahmedamir7 18 дней назад

    Parallex effect is the goat for BGs.

  • @hamzamotara4304
    @hamzamotara4304 2 месяца назад

    I've seen this effect with Ori, HK, and Terraria, and you're right. It does immerse me so much more.

  • @modlich_303
    @modlich_303 2 месяца назад +2

    Now I have an idea for a freaky effect they can be used in a place that's meant to make no sense. Inverse parallax, the background moves faster

  • @drakenailling4276
    @drakenailling4276 2 месяца назад +2

    Me who already knew this even though i've never made a game before

  • @Mernom
    @Mernom 2 месяца назад +1

    I remember figuring this out in the JJ2 map editor.

  • @peanut3438
    @peanut3438 2 месяца назад

    I love parallaxes. Those backgrounds look great!

  • @AngieMarioFreak2001
    @AngieMarioFreak2001 Месяц назад

    I kinda like how the fast prallax looks on the mountains, kinda gives the impression that you're right in the middle of a mountain range rather than the mountains being just a background thing

  • @halodragonmaster
    @halodragonmaster 2 месяца назад

    The one with the mountains moving faster genuinely gave me mountain jumpscare.

  • @doopdope2211
    @doopdope2211 Месяц назад

    The mountain illision is wild, they dont change visually at all but there’s a instant switch from them being towering mountains to them being small cardboard cutouts a few feet away

  • @Gius_Valentine
    @Gius_Valentine Месяц назад

    when i saw how the mountains didnt had parallax, and you said it looked '2d', I already knew what this was all about, gj op!!

  • @j.r7872
    @j.r7872 2 месяца назад

    Bro!!!
    Her hair looks awesome !
    That wall grab looks…
    … awesome!!

  • @Sunvaar45
    @Sunvaar45 Месяц назад

    hey man im just a programming student going into my 2nd year and i was playing around with unity after i took some extra lessons on c#. i just mimicked flappy bird to learn how to use it but after i started to add my ideas for more practice and your shorts really gave me some ideas and created fun problem solving situations for me, specifically this one and your pitch randomizing short. just wanted to ty ❤. for now its early for me but i do hope to find myself much deeper in game development

  • @thecjgameworld4013
    @thecjgameworld4013 Месяц назад

    Ah yeah, I see that plenty within the classic sonic games, the paralex effect that can truly bring a location to life if you want it to.

  • @Axeky
    @Axeky Месяц назад +1

    Oh, i just watched a video where someone was making a map thingy for hollow knight where is showed EVERYTHING and its was super hard because of the parallax scrolling

  • @FissionMetroid101
    @FissionMetroid101 Месяц назад

    Even though the faster parallax was there to make the mountains seem closer, to me they still seemed distant but with a slightly more retro charm to'em

  • @soradh_
    @soradh_ 2 месяца назад

    I've always loved this effect but I never knew what it was called
    Awesome video

  • @joshp3446
    @joshp3446 2 месяца назад

    The one trick I knew about before he said it, i finally got one

  • @Iwasonceanonionwithnolayers
    @Iwasonceanonionwithnolayers 2 месяца назад

    Finally I understand what paralaxing is!

  • @dragonbornluna5274
    @dragonbornluna5274 Месяц назад

    I love paralaxing in video games. I sometimes just run back and forth watching it move behind my character.

  • @ArcangelZero7
    @ArcangelZero7 2 месяца назад

    Always one of my all time favorite techniques!
    I dig the weird spiky spine platforms but gotta admit, at first they look like they'd be hazardous to the player to land on! 😅

  • @mythicaltwinkie8216
    @mythicaltwinkie8216 2 месяца назад +1

    The mountains should be moving significantly slower by alot. Should almost be a static image that doesnt move. Otherwise, those are just building sized jagged rocks.

  • @EggBasketUwU
    @EggBasketUwU Месяц назад

    as a geometry dash creator, parallax is like a cheat code to making things look really cool

  • @peptalkguy
    @peptalkguy 2 месяца назад

    >asks question about parallaxing on previous video
    >gets answer to question and more in this video
    Good content, love the work ❤

  • @nicknick_nick
    @nicknick_nick 2 месяца назад +1

    As a gamester I can confirm.

  • @DeltaMix96
    @DeltaMix96 2 месяца назад +1

    Rain world took this to the extreme and has 30 to 40 background images per screen to give the background 3D depth

    • @InboundShovel
      @InboundShovel  2 месяца назад

      Oh wow, that sounds awesome - I'll have to go take a look at their backgrounds for inspiration!

  • @tabbykitten722
    @tabbykitten722 2 месяца назад

    as a scratch user, the word "paralax" frightened me

  • @SqueakerBunny
    @SqueakerBunny 2 месяца назад

    You can also make the background go in the same direction as the player, and it will look like the character is running in circles

  • @223rockmaster
    @223rockmaster 2 месяца назад

    I'm just really excited to play this game.

  • @PursuitSk8
    @PursuitSk8 2 месяца назад

    This game looks sick

  • @TheDrunkMarshmallow
    @TheDrunkMarshmallow 2 месяца назад

    Don't forget the final level of this: if you have something really big and far away it needs to be stationary. Like the moon.

  • @humanman_one
    @humanman_one 23 дня назад

    Wow, I've seen that difference in the end. For a moment it looked like you changed size of mountains

  • @Dethneko
    @Dethneko 2 месяца назад

    What really messes with my brain is when I'm a passenger and have the time (and space) to view off into the way distance, because there's a point where I swear it looks like the distant objects are moving FORWARD with me.

  • @LeoStaley
    @LeoStaley 2 месяца назад

    There were some amazing hacks in the NES for creating parallax, despite only having one background layer.

  • @420jw
    @420jw 26 дней назад

    Another one I know! Score :D
    This feels like a minigame now, I'm hooked

  • @Leekodot15
    @Leekodot15 2 месяца назад

    What would still make sense is if the closest bg layer didn't parallax at all, due to being, well... the walls right behind the player and thus, part of the immediate environment (alongside the terrain, plus bushes, rocks, or other barely foreground objects attached to it.)
    Could make two immediate background environments though. One that's stationary and one that's sliightly further back, in case you want to do anything special with either...

  • @SpicyTastes-u7k
    @SpicyTastes-u7k 2 месяца назад +1

    Some 2D games actualy making in 3D for catching this affect.

  • @Firefight_
    @Firefight_ 2 месяца назад

    I was talking to a coworker about learning coding, and I told him my goal was to make a simple platformer in similar vein to this, my reasoning "…because I have a lot of examples to pull inspiration from, it’s straightforward, I don’t have to do anything in 3D (remembers parallaxing)… sort of."

  • @CSDragon
    @CSDragon 2 месяца назад

    you can also make things seem bizarre or wrong by making the background speed with each layer instead of slowing down

  • @Heide529
    @Heide529 Месяц назад

    If you're a gamedev keep in mind that doing this can potentially hurt the verticality of the level since going too high or too low would just make the horizon disappear, it's why it's better to make your parallax background a repeating pattern if possible (the YT short provides a good example of this)

  • @nery2981
    @nery2981 2 месяца назад

    You can see this perfectly at work in hollow knight

  • @aimarmelchormartinez1338
    @aimarmelchormartinez1338 2 месяца назад

    Webtoo is like the crack House of weird stories

  • @imsimonster
    @imsimonster 2 месяца назад

    did that once in the gd editor. it works wonders!

  • @FinalHopeTrio
    @FinalHopeTrio 18 дней назад

    Sonic games on the Genesis take this seriously, as we can see in zones like Green Hill, Emerald Hill, Death Egg Zone, The intro and ending of Sonic 3 & Knuckles, and even many parts of Sonic CD.

  • @HonorDev
    @HonorDev 2 месяца назад

    I love this. Sorry I'm a bit late, but quick suggestion: You did apply parallaxing to the background, but still in the mountains case, you just ran over like 3 mountains in 5 seconds. I like to be not afraid of how slow the background moves. The mountains in your case seem like big, sharp spikes rather than gigantic mountains.

  • @Blahblah97555
    @Blahblah97555 Месяц назад

    Something to keep in mind is that with the way perspective works, if an observer follows a subject without rotation, moving as fast as the subject, the subject will only appear to pass an object when it’s moved the actual length of the object.
    Obviously you don’t need perfect realism in your game’s perspective, but if you want pseudo-realism then often times it’s better to keep a large object like a mountain completely static, or maybe move it a tiny amount like 1% of what the character does.

  • @koolcatthemartian
    @koolcatthemartian 2 месяца назад

    You can also combine parallax with vanishing point to make a visible body of water you can jump into like they do in Sonic the hedgehog

    • @didiercollard
      @didiercollard 2 месяца назад

      I always wondered how they did that in Hydrocity.

  • @CheezyDonutz
    @CheezyDonutz 2 месяца назад +1

    I just took interest in game dev and only have a 32gb rom 2gb ram mobile phone with zero experience in coding or even art. I don't understand your videos but I kinda get them. I hope I make progress lol

    • @Ratoons_wasTaken
      @Ratoons_wasTaken Месяц назад +1

      Making a game on phone will be a giant challenge, but I wish you best of luck with that

  • @arrakaarkana6281
    @arrakaarkana6281 2 месяца назад

    Would be fun to have the background move faster sometimes

  • @disappointedcreeper
    @disappointedcreeper 2 месяца назад +1

    HECK YEAH PARALAX

  • @loayelmitwaly6281
    @loayelmitwaly6281 2 месяца назад +1

    Hey man, love your videos! Could you do one for physics frames? I (and many others) would appreciate it deeply.

    • @InboundShovel
      @InboundShovel  2 месяца назад +1

      I can give it a try - anything in particular you want to know about physics frames, like any detail you're struggling with? :D

    • @loayelmitwaly6281
      @loayelmitwaly6281 2 месяца назад

      @@InboundShovel Nothing in particular, a general overview would be much appreciated (difference between _process and _physics_process, etc.)

  • @AverageDoctor345
    @AverageDoctor345 2 месяца назад

    And if you do the opposite and make the deeper layers move faster than the closer layers, you can make it look like you're spinning/rotating.

  • @ryanh_dev
    @ryanh_dev 2 месяца назад

    If you use a 3D camera you can just physically move the sprites back and forth to recreat parallax scrolling. But only of course if the engine supports it!

  • @santa_with_a_gun
    @santa_with_a_gun Месяц назад

    parallax
    edit: fucking called it

  • @pixelcuber
    @pixelcuber 2 месяца назад

    I would try it if my ancient ass game engine didn't lag so much when using parallax

  • @otaking3582
    @otaking3582 2 месяца назад

    "It feels flat and two-dimensional"
    Almost as if this it's 2D sprites in an environment that doesn't even pretend to be real.

  • @ghb323
    @ghb323 Месяц назад

    NES games does not have multiple layers which is why games like Kirby’s Adventure felt like the background is a painting. Often times games use interrupts on the rendering process and shift the layer. Problem is you cannot have “foreground” objects else they will move with the “background”. One trick is by shifting the graphic tiles depending on the scrolling position, like battletoads. See parallax scrolling on the nes by retro game mechanics explained.

  • @gabrielbarrantes6946
    @gabrielbarrantes6946 2 месяца назад

    This was great on the snes

  • @Thatnormalted
    @Thatnormalted 2 месяца назад

    Imagine being a human with functional eyes and not figuring out parallaxing

  • @MaxwellW-z5z
    @MaxwellW-z5z 2 месяца назад

    Thank you!

  • @kamnse
    @kamnse 2 месяца назад

    Funfact. Hollow Knight does a lot of this, but the funny thing is that Hollow Knight is actually in 3d, and all the layers are in 3d space

  • @-Shinoray-
    @-Shinoray- 2 месяца назад

    Yeah! The first video I knew what he was talking about. Woohoo!

  • @Something_random-sometimes
    @Something_random-sometimes Месяц назад

    As a hollow knight fan and animator for fun, I can confirm.

  • @astrid2432
    @astrid2432 Месяц назад

    Or: you reveal later that your chara walked the whole time infront of a huge painting of some mountains

  • @brianfox340
    @brianfox340 2 месяца назад +1

    I had a feeling this was about parallaxing, though i do think the first version looked fine (though for sure worse)

  • @Detective_Lynne
    @Detective_Lynne 2 месяца назад

    I want to see how it looks like when the bg moves faster than the character

  • @Kano_Productions
    @Kano_Productions 2 месяца назад

    So that's what it's called. So cool

  • @invenblocker
    @invenblocker 2 месяца назад

    And if you use a 3D capable engine, you can essentially fake parallax by actually just pushing layers backwards on the Z-axis.
    Using 3D to fake faking 3D.

  • @dunnydunn458
    @dunnydunn458 2 месяца назад

    I think Rain World uses this technique. Regardless, it looks beautiful

  • @rickraydubs
    @rickraydubs 2 месяца назад +1

    ::3D has entered the chat::

  • @jesusvera7941
    @jesusvera7941 2 месяца назад

    basic, but now, if you want to make a frontground, make it move faster than the camera, except, is is very easy to screw this up, try to create a scaling frontground, for example, make decoration in front of the actual playable terrain, try not to cover anything behind, rather make it outside the playable terrain, then scale it to make it look bigger, in other words "closer" to the camera, then give it a negative movement speed in relation with the camera, the ratios of movement/scalling is hard to match, but its possible, it something like "scale: 2.0 = speed: -0.5"

  • @ludwigvangaming1822
    @ludwigvangaming1822 2 месяца назад

    This is so cool.

  • @diedburning9174
    @diedburning9174 2 месяца назад

    I got an idea of a dimension where background moves *faster* then camera
    And make it glitchy or chaos kinda thing

  • @Pronom-rz9lg
    @Pronom-rz9lg 6 дней назад

    Dead cells cook with this