How to Make a Good 2D Camera

Sdílet
Vložit
  • čas přidán 22. 05. 2024
  • 🔴 Get bonus content by supporting Game Maker’s Toolkit - gamemakerstoolkit.com/support/ 🔴
    Making a 2D game? Then you'll need to code a camera. But there's more to it than just following the main character. Here are five tips for making a better camera.
    === Sources and Resources ===
    - Additional resources
    Platformer Toolkit
    gmtk.itch.io/platformer-toolkit
    Math for Game Programmers: Juicing Your Cameras With Math | GDC on CZcams
    • Math for Game Programm...
    Scroll Back: The Theory and Practice of Cameras in Side-Scrollers | Game Developer
    www.gamedeveloper.com/design/...
    How Cameras in Side-Scrollers Work | GDC
    • How Cameras in Side-Sc...
    Insanely Twisted Shadow Planet Camera Explained | Ryan Meyer
    • ITSP Camera Explained
    Analysis of Screenshake Types | DaveTech
    www.davetech.co.uk/gamedevscre...
    Basic 2D “Screen Shake” in Unity | Medium
    / basic-2d-screen-shake-...
    Amplify Your Game Camera | Medium
    / amplify-your-game-camera
    Muno | Twitter
    / 1597255824904441859
    50 Camera Mistakes | GDC Vault (Free)
    www.gdcvault.com/play/1020460...
    === Chapters ===
    00:00 - Intro
    00:26 - Lookahead
    03:06 - Jumping
    05:06 - Damping
    06:21 - Framing
    08:16 - Juice
    09:55 - Conclusion
    === Games Shown ===
    Super Mario Maker 2 (2019)
    Super Mario 64 (1996)
    Life is Strange (2015)
    Platformer Toolkit (2022)
    Sonic Mania (2017)
    Metroid Dread (2021)
    Terraria (2011)
    Super Catboy (2023)
    Geometry Dash (2013)
    OlliOlli World (2022)
    Cave Story (2004)
    New Super Mario Bros. U Deluxe (2019)
    Sonic Generations (2011)
    Hyper Light Drifter (2016)
    Luftrausers (2014)
    Nuclear Throne (2015)
    Enter the Gungeon (2016)
    The Swapper (2013)
    Hotline Miami (2012)
    Ghost Song (2022)
    Bubsy: The Woolies Strike Back (2017)
    The Messenger (2018)
    Donkey Kong Country: Tropical Freeze (2014)
    Rayman Legends (2013)
    Shovel Knight (2014)
    The End Is Nigh (2017)
    VVVVVV (2010)
    Grapple Dog (2022)
    Haiku, the Robot (2022)
    Pizza Tower (2023)
    Hollow Knight (2017)
    Ori and the Will of the Wisps (2020)
    Guacamelee! 2 (2018)
    Fez (2012)
    Gravity Circuit (2023)
    Spelunky 2 (2020)
    Cyber Shadow (2021)
    Little Nightmares II (2021)
    Blasphemous (2019)
    Insanely Twisted Shadow Planet (2011)
    Disney Illusion Island (2023)
    Pyre (2017)
    Inside (2016)
    Gris (2018)
    Celeste (2018)
    Katana Zero (2019)
    Dave the Diver (2023)
    Hades (2020)
    Cuphead (2017)
    Viewfinder (2023)
    Tormentor X Punisher (2017)
    The Legend of Zelda: Link's Awakening (2019)
    === Credits ===
    Music provided by Epidemic Sound - www.epidemicsound.com/referra... (Referral Link)
    === Subtitles ===
    Contribute translated subtitles - amara.org/videos/6cZLYxYTl6OP/
  • Hry

Komentáře • 434

  • @PhotonBeast
    @PhotonBeast Před 8 měsíci +1010

    In terms of screen shake, there is a small but important distinction to make. There's screen shake where the rendered image moves around and then there's screen shake where the physical camera (such as it is) moves around. Both can look similar but when you physically move the camera, this can have impact on character controls - some things may be using camera space for calculations such as reticle and aiming. Moving the camera can thus be disorienting and frustrating if the camera shake actually moves the reticle off target (or similar effect). Whereas moving the rendered image itself is purely visual and won't impact gameplay itself. Both are useful in different situations as they have different feels to them.

    • @LickingFire
      @LickingFire Před 8 měsíci +4

      As a counterpoint on camera-motion screen shake:
      The fact that it affects aim might be a thing you actually want in your design, as it makes it harder to aim (duh) when your character is being shaken by an earthquake or perhaps a boss smashing the ground and trying to destabilize them. Now, there are other ways you could achieve this (as always), but it's something to consider. As always, design works best when you're intentional about how *and why* you do things.

    • @PhotonBeast
      @PhotonBeast Před 8 měsíci +49

      @@LickingFire Oh agreed; that's indeed what I meant. Even within a certain type (shaking from explosions), there is that important design consideration you call out. A player-driven explosion (a thrown grenade) might be best as screen space since it's (presumably) a cool thing the player is doing in the heat of combat. While a thrown enemy grenade may cause game space shaking for that disorienting "I'm in trouble" feel.

    • @underdweller
      @underdweller Před 8 měsíci +13

      ​​@@PhotonBeastthe idea of Ralph Wiggum holding an M4, huddling behind a burnt up car and saying "haha, I'm in danger!" is sending me

    • @NeonDripKitty
      @NeonDripKitty Před 8 měsíci +1

      @@underdweller thank you for sharing this image with the world 😆

    • @RenderingUser
      @RenderingUser Před 4 měsíci +2

      There's also parallax backgrounds to take into account.

  • @danielleanderson6371
    @danielleanderson6371 Před 8 měsíci +99

    You missed perhaps one of the most crucial camera features for 2D action games: player control. Giving the player the option to pan the camera a bit further from their character by tilting the right stick in a particular direction (or sometimes just the left stick down) makes it so much easier to navigate a 2D world.

    • @milanvandenbruane6227
      @milanvandenbruane6227 Před 3 měsíci +5

      He did mention the camera following where you're aiming

    • @William_3DS
      @William_3DS Před 3 měsíci +2

      Isn't this something that New Super Mario DS does? When you press L or R it shifts the camera a bit more to the side you're pressing.

  • @scarletniqht
    @scarletniqht Před 8 měsíci +639

    Great video as always! The divider in the center of the screen to help with understanding the movement of the camera in relation to the player really helps visualize how the camera is working behind the scenes. Great use of visuals to help with understanding what is going on. Also super happy to see Pyre in this video, it's a hidden gem.

    • @ofbleedingink6473
      @ofbleedingink6473 Před 8 měsíci +14

      Came down to the comment section specifically to shout out Pyre as well! Absolute masterpiece of a game. ❤️

    • @LethalLuggage
      @LethalLuggage Před 8 měsíci +1

      still haven't gotten a chance to play Pyre, but it's sitting in my library waiting. Bastion, Transistor, Pyre and Hades are all fantastic. I can't wait til they get past Hades 2 and show us what's next! (also excited for Hades 2 just love their new stuff so much)

    • @oliviapg
      @oliviapg Před 8 měsíci +11

      Is it really hidden? Supergiant has got to be one of the most widely-praised indie dev studios out there.

    • @LethalLuggage
      @LethalLuggage Před 8 měsíci +3

      @@oliviapg to be fair they were a lot smaller before Hades. Now they're practically a household name.

    • @ImCurrentlyNaked
      @ImCurrentlyNaked Před 8 měsíci +9

      @@LethalLuggage Their first game 'Bastion' was already a massive hit and basically made them the studio to talk about, when talking about indie successes, but you are right Hades has also been massive for them.

  • @Cyberbladewolf
    @Cyberbladewolf Před 8 měsíci +272

    One effect that I feel could have been mentioned more is how limiting the speed of the camera can also emphasize aspects of characters or gameplay. A character will feel faster if the camera drags behind them. A perfect example is that Sonic games purposely put a cap on camera speed but not on Sonic, so in certain cases (Sonic 2 Chemical Plant for example) Sonic can outrun the camera entirely. It really makes Sonic feel like 'the fastest thing alive', and it rewards replay to learn when to act in order to maintain that insane speed as long as possible.

    • @timpize8733
      @timpize8733 Před 8 měsíci +46

      Yes, it works in Sonic since it only happens in the linear sections where you don't need to be fully aware of what's going on.

    • @Rainbowforce5
      @Rainbowforce5 Před 8 měsíci +16

      I'm not a fan of this personality. I like to be able to actually see what I'm doing. If the character moves to the right side I have no way of seeing what's ahead. I think a better solution is to zoom the camera out as you go faster and faster. Even pulling the character MORE left is helpful and can make tricky fast paced playforming sections much easier and satisfying. But that's my personal taste.

    • @chronotrigger88
      @chronotrigger88 Před 8 měsíci +5

      Limiting the visibility is also important to hide secrets. Take the Donkey Kong Country games for instance, the Snes ones have tons of things to discover, as opposed to the zoomed out camera version of the Wii, where the bonus are nothing more than skill challenges...

    • @lluisg.8578
      @lluisg.8578 Před 8 měsíci +7

      ​@@Rainbowforce5correct but then you lose the speed feeling.
      In Sonic and especially in the first generations speed was the trademark of the franchise.
      With the hardware limitation and most games feeling slow, Sonic speed made the game sell a lot.
      So not giving the players this anticipation was a good design decision at that time.

    • @hazelcrisp
      @hazelcrisp Před 8 měsíci +3

      @@Rainbowforce5 It was a product of it's time. The classic Sonic games weren't meant to be played once. But through trial and error where you can master it and know what is coming up. Which is why the camera is so centered. You are not meant to see what is coming. YOu are supposed to git gud But as players change it's why generations is easier and uses offset camera.

  • @taketheleep
    @taketheleep Před 8 měsíci +35

    The staging of scenes in Gris is fantastic and is a perfect example of how camera work can also be used to emphasize art direction. It's hard to think of a game that handles that interaction as well as Gris does.

  • @AnotherDuck
    @AnotherDuck Před 8 měsíci +81

    When you talked about tracking two important objects in Pyre, I'm surprised you didn't mention fighting games. That's an entire genre where you have two characters on screen who're equally important (outside some special attacks and entry/ending poses). It's also a genre where positioning and spacing is extremely important, so you need to have a camera that accommodates that.

    • @gjergjipocari8227
      @gjergjipocari8227 Před 8 měsíci +3

      I guess the video focused on platformers otherwise we'd haeve a pretty big discussion on camera in general, for example it being the "actual toughetst" enemy in fromsoft games. Or how in fighting games as you mentioned camera can have even bigger effects on gameplay when a side switch happens, for example in tekken where an unexcpected side switch has caused a combo drop and a comeback, leading to some of the most memorable moments in tournaments.

    • @AnotherDuck
      @AnotherDuck Před 8 měsíci +11

      @@gjergjipocari8227Those are 3D games, though, which he didn't talk about at all, probably because one more dimension means even more of complex camera mechanic.

  • @thatgreenfur6584
    @thatgreenfur6584 Před 8 měsíci +31

    For some reason next April fools Day I want GMTK and Tom Scott to switch places and present the other's video

  • @tristanlapointe9087
    @tristanlapointe9087 Před 8 měsíci +470

    I literally needed this for my project. You’re a blessing 🙏🏻

    • @Mroof124o
      @Mroof124o Před 8 měsíci +5

      Im also working on a 2D platformer

    • @jvfzago2421
      @jvfzago2421 Před 8 měsíci +5

      Me too. We were planning to change the camera, this video came in the right time

    • @jonathanpatterson9791
      @jonathanpatterson9791 Před 8 měsíci +2

      nice

    • @lunarfifthstudios
      @lunarfifthstudios Před 8 měsíci +5

      Same here! What a great resource- so grateful for everything GMTK does! 🙏

  • @GoldenJLR
    @GoldenJLR Před 8 měsíci +90

    Great video, as always, but I think it's important to remember that, in the case of Sonic, making the camera lag behind him was always intentional to give the sense of speed. The camera showed what is in front of Sonic in the original 1993 version of Sonic CD but this feature was removed from the game since the 2011 version.
    Sonic level design is more similar to a metroidvania than a tradicional platformer, "forwards" can be anywhere, right, left, up or down. If the camera tried to show in front of Sonic like it does with Mario for example it would be a shaky mess

    • @Comfortably-Dumb
      @Comfortably-Dumb Před 8 měsíci +15

      Yeah, I get why some people prefer the Sonic CD camera, but the extra visibility was never worth trading away the sense of speed for me. And I love the design choice to allow Sonic to blast off the edge of the screen as a meta-commentary on his speed - if the game can’t keep up with him, then what can?

    • @todesziege
      @todesziege Před 8 měsíci +6

      Sonic is the most misunderstood game

    • @technicallyinept2120
      @technicallyinept2120 Před 8 měsíci +3

      Personally, the “sense of speed” gotten from outrunning the camera doesn’t do anything for me. The argument that the path forward is constantly changing in direction in Sonic games does hold a little bit of weight however…
      …until you consider that there are other platformers that also do this, and find ways with the camera to still have visibility.
      I think what really matters and what is with sacrifice here is a subjective thing, but when I look at the fact that almost every modern platformer I can think of it that’s worth anything does not have issues like this I can’t help but view Sonic as something clinging to tradition to it’s detriment.

    • @GoldenJLR
      @GoldenJLR Před 8 měsíci +1

      @@technicallyinept2120 which similar platformer have a better camera? The only good games similar to Sonic that comes in my mind are Freedom Planet or Spark the electric jester and both has a camera pretty much identical to Sonic. The camera in Freedom Planet 2 zoom out in some parts but that also happens in 2.5D Sonic.
      For high speed platformer with open level design I can't think of a better camera. During the 90s there were so many Sonic clones with more traditional camera where it was impossible to see what is going on with blind jumps and enemies coming from nowhere. Putting Sonic in the middle, making the camera move a bit when he jumps and not having enemies on speed section where stuff that always made playing Sonic feels natural. (Yes, Sonic had break this rules before but that's why nobody likes metropolis zone or the Game Great ports of Master System games)

    • @technicallyinept2120
      @technicallyinept2120 Před 8 měsíci +1

      @@GoldenJLR If I recall correctly, FP2’s zooms out dependent on your speed rather than the section of the level you are in. And neither is identical to 2D Sonic.
      However, the former is similar to 2.5D Sonic as you said, but for a number of reasons 2.5D Sonic just is not what I think of when it comes to matters like this as far “what Sonic does.” Sorry about that.
      Many, MANY metroidvania’s have you doing more than just heading right to progress to a level, but going in all types of directions. Same with Megaman. Same with Celeste. This is what I was actually talking about when I said that other games are able to do what Sonic does without sacrificing visibility. Not deliver the sense of speed without sacrificing visibility.
      But now that I think of it, I actually can think of a few platformers that still deliver that. Besides FP already mentioned, the first one that comes to mind is, believe it or not, a mobile game called Skyturns. There are actually a number of things I would love for Sonic to learn from that game.
      Fancy Pants Adventure also comes to mind. Also a sort of Mirrors Edge fangame made by the same developer.

  • @gameman250
    @gameman250 Před 8 měsíci +68

    I'm reminded of games where you can pan the camera yourself in some circumstances, like in Sonic the Hedgehog where you can hold up or down to move the camera in that direction to see what's above or below. And then in Sonic 3&K you can use this trick combined with jumping to break the game in all sorts of hilarious ways, though that falls more under glitches.

    • @inazumarai7690
      @inazumarai7690 Před 8 měsíci +6

      level wraps go crazy

    • @technicallyinept2120
      @technicallyinept2120 Před 8 měsíci +1

      In Sonic, it takes far too long to look up or down. That, combined with the fact that the ring system nearly, basically makes you invincible, discourages stopping to do this and instead encourages just kind of rushing ahead blindly.
      Unless you’re trying for some alternative object that requires not taking damage, like holding on to rings for special stage entry.

    • @gameman250
      @gameman250 Před 8 měsíci

      @@technicallyinept2120 Or searching for something specific, such as entrances to those Special Stages.

    • @technicallyinept2120
      @technicallyinept2120 Před 8 měsíci

      @@gameman250 Nah, I pretty much never use the camera controls for that purpose. Never need to

  • @perplexedon9834
    @perplexedon9834 Před 8 měsíci +9

    I'd strongly recommend developers consider the emotional component of the camera as well. In a game like Rain World or Celeste, the camera is fixed, and you traverse screen sized rooms. (Both have some exceptions, but in these the camera will move on one axis, strictly up/down or left/right, and the few rooms in Celeste with free camera movement emotionally convey the tone of being lost in a sea of confusing space; it is done purposefully). The fixed camera not only facilitates tight platforming, but it makes the player feel a certain way. Celeste is about climbing a mountain, and the fixed camera makes you feel small, and makes the environment feel like a character in and of itself. Rain World is about being at the bottom of the food chain, surviving in a world that isnt designed for you. Ironically enough, the one exception where the camera tracks you is a plot pivotal moment where the environment fades away and the focus is entirely on your character. I wont spoil it but its brilliant.
    There is even a mod for Rain World that makes the camera scroll, and I find it makes the game miserable to watch. To me, it removes the thematic beauty of the environments and changes the feel of the game entirely.
    If you want a game where the environment is a character, and the story explores the lead characters relationship with their world, consider a fixed camera.

  • @lilonnarondeleux4518
    @lilonnarondeleux4518 Před 8 měsíci +40

    The thing I am most proud of in my first game is it's camera, glad to see a lot of the little things I used mentioned here!
    One thing I did that I haven't seen a lot is having the zoom be tied to the character's speed, which allows for more lookahead when going fast (when you most need it), while allowing slower players more precision.

    • @neomorphosallomorphis7395
      @neomorphosallomorphis7395 Před 8 měsíci +2

      that's a great idea! may i ask how much did you zoom out and if it had inconvenients, like modifying the visual density on screen?

    • @lilonnarondeleux4518
      @lilonnarondeleux4518 Před 8 měsíci +5

      hey I'm sorry I've tried to answer you before but somehow my comment didn't register.
      I think the max zoom out was 3 times wider than the normal view. The game was quite low in detail so I didn't think about visual density too much, but maybe I should have! One inconvenient it had was diminishing the feeling of speed, 'cos like backgrounds aren't moving as fast if you zoom out, but I still think the tradeof in visibility was well worth it!

  • @Bk15729
    @Bk15729 Před 8 měsíci +106

    Honestly one of the best and most simple use of camera is rain world. The static camera switching between grids makes the game harder and more fun to play

    • @armandostockvideos8386
      @armandostockvideos8386 Před 8 měsíci +25

      thou it's annoying when you have to jump between platforms that are close but in different screens. Luckily, this doesn't happen very often.

    • @rocketprinter3570
      @rocketprinter3570 Před 8 měsíci +31

      People complain about the static camera but it's actually the correct choice for the gameplay. You always have to be on the lookout to spot any movement or weird pixels that might be an ambush predator and a moving camera makes that a lot harder. Each screen transition becomes a stressful test of reflexes as a predator might be waiting to snatch you up. It's brutal and unfair and how the game is meant to be. Also it makes audio clues more important!
      There's a mod that makes the camera dynamic and it just made me feel nauseous.

    • @ofbleedingink6473
      @ofbleedingink6473 Před 8 měsíci +1

      Oooh, what an interesting point! I haven't considered it this way yet, but you're right, it does add a lot to the experience.

    • @someone_with_no_username
      @someone_with_no_username Před 8 měsíci +10

      Rain World's camera system is often criticized due to its nature of hiding offscreen dangers, like a lizard which bites you right as the screen changes. In reality, most such deaths are completely avoidable with skill, and those patient enough to not quit after a couple of deaths will be able to learn from their experience and be more careful next time. It also encourages you to pay more attention to smaller environmental details and audio cues. I won't say it's objectively the best decision, but I personally like it and evidently a lot of people also did, so I don't think there's much to be gained from discussing whether or not it's objectively good or bad. Rain World isn't just a game: it's a work of art, and it's not designed to please everyone.
      That said, I'm not sure if it was really an intentional design choice. The way Rain World's graphic system works is that all screens are pre-rendered and stored as png files, which removes the need for in-game graphics computation. When the camera moves the game just switches to using a different png. The mentioned camera scroll mod stitches together each pre-rendered screen, which means that some depth elements might not look right, and occasionally there'll be a visible seam between two screens. I've heard in some places that graphical limitations played a role in the game's static camera system.

    • @denalischopp
      @denalischopp Před 8 měsíci +1

      SB Camera Scroll from the steam workshop is a mod that only does one thing: center the camera on the player in multi-screen rooms, which turns the jarring transition into a gentle scroll. It's very interesting how such a small change can affect the gameplay so much, it makes it feel almost too easy.

  • @russianbear0027
    @russianbear0027 Před 8 měsíci +13

    Thank you for posting this with subtitles already attached. A lot of channels wait a day to a week before adding them for some reason

  • @wonder_platypus8337
    @wonder_platypus8337 Před 8 měsíci +64

    Just a minute in and I'm absolutely loving this video. Could use more of these deeper breakdowns.

  • @MondayHopscotch
    @MondayHopscotch Před 8 měsíci +11

    Cameras are one of those things that seem sorta simple until you start tweaking it. In a game I recently finished, I'd say I spent easily a couple weeks tweaking the camera before I was happy with it.

  • @funx24X7
    @funx24X7 Před 8 měsíci +15

    Love how this is educational while also showcasing games that do a good job.

  • @DemoSin
    @DemoSin Před 8 měsíci +3

    i loved Gris's world/background so much i'm SO glad the camera worked as it did because there really was something to apreciate in the bg at all times

  • @Stratelier
    @Stratelier Před 8 měsíci +2

    _Secret of Mana_ is a great example of how a 2D camera can tangibly affect gameplay.
    - In the original 16-bit versions, the camera does NOT move until you reach about 2-3 tiles from the edge. This means you have almost no "lookahead" when exploring, but it also means the camera has more "dead zone" to remain stationary during battles. The camera is also blocked from moving off the edges of zones, so any time you CAN actually touch the edge of the screen implies it's an exit to another area (or it's an obvious wall).
    - On the flipside, your party members are not permitted to travel beyond the camera's reach so while they're normally pretty good at tracking behind your character outside of fights, there CAN be times where your characters are (by some circumstance) split so far apart across the screen, not only is the camera essentially pinned down, the characters are too. (Most notably in the boss battle against Dread Slime)
    In the game's 2014 remake, neither of the above points apply:
    - The camera is consistently locked onto your character's position at all times with no "dead zone".
    - Party members _are_ allowed to stray off-camera without problem (the game will teleport them back to your position if necessary).
    But where it actually impacts gameplay is how the game spawns monsters when their origin point is just off the edge of the screen -- so while there is a limit of 3 monsters at any time, the constantly-moving camera provides more opportunities for offscreen monsters to spawn in after you kill a different one. This makes individual areas feel more monster-dense than in the original.

  • @stevenneiman1554
    @stevenneiman1554 Před 8 měsíci +3

    Because of how often the trick is used to highlight a beautiful view or grand structure, I think that the camera pulling forwards and zooming out before coming to rest on a static shot primes me to feel a sense of awe or reverence.

  • @Nikkiflausch
    @Nikkiflausch Před 7 měsíci +5

    Hit freezes are one of the coolest camera effects in gaming imo. I can‘t believe you didn‘t cite Smash for a top notch implementation, where the amount of frozen frames corresponds to the severity of the impact!

  • @supercatboy
    @supercatboy Před 8 měsíci +2

    Omg, that's a me! 0:58 🙀
    Thanks for the informative video and for including Super Catboy! ❤

  • @thusadragon
    @thusadragon Před 7 měsíci +3

    Always a treat to see Ori and the Will of the Wisps featured. I noticed it using not only damping but also framing; there's a lot of areas where my attention was helpfully drawn to something as Ori entered. There's even a spot where the walls are framed close to the edge of the screen, but then busting through a breakable wall suddenly shifts the camera to show you some of what's behind there! It's neat that they didn't let the camera give away the secret area until you had found it yourself. You can also hold up or down to have Ori look up or crouch, manually shifting the camera a bit in that direction.

  • @FletcherPorter
    @FletcherPorter Před 8 měsíci +6

    This video is like a throwback to GMTK ca 2017. The detailed breakdown of a single very practical topic, running through examples in a million games, even half the games he cites were mentioned in his videos from back then

  • @SnafuGuitarBoy
    @SnafuGuitarBoy Před 8 měsíci +7

    Your videos are absolute masterclasses. The amount of focused quality information you pack in 10 minutes is really impressive. Thank you so much for what you do !

  • @Ivorforce
    @Ivorforce Před 8 měsíci +6

    I really enjoy the great number of examples you include in these videos. Good Work!

  • @RKIOrbMage
    @RKIOrbMage Před 8 měsíci +8

    Amazing video! I would have liked to see a segment on room to room cameras, but I loved the way you approached this topic! My favorite camera technique is the special event one, it is extensively used in Mario+rabbids kingdom battle to show key objects. Most people hate this because they feel it's too restricting, but I absolutely LOVE it.

  • @F1nalspace
    @F1nalspace Před 8 měsíci +2

    Good video! Very detailed explained how camera movement can improve any game.
    One thing i did a lot in the past, was moving the camera by its velocity to the target player position until the distance between the player are above some threshold.
    Even that feels much more nicer. Also its nice when the camera does not go outside the level bounds, so i always clip the camera position by half the visible game area - which looks like the camera was stopped naturally.

  • @GameDevYal
    @GameDevYal Před 8 měsíci +5

    In my experience, just slowly lerping the camera towards the player position solves all the jitteriness issues pretty well (both sideways and jump-wise) but you need a lot more lookahead to stop the player from escaping that comfortable zone where they see more ahead of themselves than behind. Much easier than implementing all five tricks... but you get an endless struggle of balancing two opposing forces.

    • @somerandombub
      @somerandombub Před 8 měsíci +1

      Did you make this comment before watching the whole video? lol

  • @timpy2
    @timpy2 Před 8 měsíci +2

    I just added one of the LookAhead options to my 2D shooter and it feels so much better now! Thanks for the video, I had not thought of these things.

  • @PhoenixClank
    @PhoenixClank Před 8 měsíci +1

    Fun fact about not having to track jumps due to level layout: the NES had enough video memory to hold an area four times the size of the screen, but for technical reasons, unless the cartridge provided extra hardware, only half of that could actually be used. The game could choose between using the "bottom" half or the "left" half though, and when you use the bottom half, you can scroll sideways smoothly, and with the left half you can scroll up and down. And this configuration can be changed mid-game, which is how Metroid features both vertical and horizontal corridors, but no huge rooms that scroll in both directions.

  • @panpukinart
    @panpukinart Před 8 měsíci +3

    This is incredibly helpful, thank you! We'll definitely apply some more of these tricks in our game, you have great timing :)

  • @birdeynamnam
    @birdeynamnam Před 8 měsíci

    Amazing video! I love how it can be practically applied, and the resources! Mark, you are truly a blessing ❤

  • @jacobnorman3629
    @jacobnorman3629 Před 8 měsíci +1

    you always enlighten me on how much really goes on in making a game and how many choices a game maker has to give their game a specific feel!

  • @thegamedevcave
    @thegamedevcave Před 8 měsíci +5

    wonderful list of things to spice up your cameras! I'd like to note that while this video might focus on 2D cameras pretty much all these same concepts stay true for 3D camera's too, although things get a little more tricky to get right in 3D sometimes, the basics ideas are the same.

  •  Před 8 měsíci

    Thanks for making this video!
    I've reworked camera system in my game, to include moving ahead of the player - thanks to your advice. And now it feels much better!

  • @setaindustries
    @setaindustries Před 8 měsíci +1

    Camera movement: **exists**
    Rain World: Nah, I'm not feeling it

  • @UnperfectFeeling
    @UnperfectFeeling Před 8 měsíci

    This might be your best video yet! Brilliant work.

  • @AaronRotenberg
    @AaronRotenberg Před 8 měsíci +1

    3:30 I was studying other games' cameras while working on the camera for my own game recently, and I noticed that in Hollow Knight there are a _lot_ of regions where the camera is hardcoded to be locked along the Y-axis to a specific predetermined height and doesn't follow jumps. An easy place to see this is the long hall with all the boss statues in Godhome, where you can watch the camera do some interesting manuevers as you go between the first and second levels of the room.

  • @47maxnw
    @47maxnw Před 8 měsíci

    i'm glad that this video mentioned your Platformer Toolkit because that is great content that more people should know about

  • @jwr6796
    @jwr6796 Před 8 měsíci +1

    I wish more games journalists would get into development. Even if you never go back to your magnet game or never take on another project, the insights you've gained and can pass along now that you've had those experiences are so much more nuanced and relevant to the small, detailed problems your audience will encounter. Thank you for doing what you do and communicating it so clearly!

  • @undercoverduck
    @undercoverduck Před 8 měsíci +2

    I really love these in depth looks at decisions I wasn't aware developers have to make

  • @juanjif
    @juanjif Před 8 měsíci +1

    Something that's really important that I'm not seeing here is that the offset of the camera can also give information subconsciously to the player, not only for seeing what they have ahead. If you have the camera move a little bit forward according to the player X velocity, you will get feedback if you bump into a wall when you are looking at something else on the screen (an enemy about to attack, for example). Same thing when aiming: having the player character offset a little bit to one side tells you that you're aiming to the opposite side of the screen, without you actually having to track the cursor.

  • @TorQueMoD
    @TorQueMoD Před měsícem

    I've spent my entire indie game dev career making 3D games, but I'm now making a 2D game with a friend. It's funny because of course I think of the camera movement in a 3D game, but it didn't even cross my mind to not lock it to the character for a platformer. Thanks for pointing this out :)

  • @damie9412
    @damie9412 Před 8 měsíci

    Lovely video, always supporting you!

  • @noahclaycameron
    @noahclaycameron Před 8 měsíci +1

    I appreciate the note on options for screen shake 😅 sometimes I struggle with this and at that point in the video just the game footage was starting to be a struggle to view, luckily the video didn’t have segments too long of those kinds of shakes or retro camera jerks for me at the moment
    Appreciate you Mark

  • @jero3295
    @jero3295 Před 8 měsíci

    Literally the GMTK episode I needed at the moment. Took a break from the game I'm making to watch this and review what I'm doing XD tHank you!

  • @iambecomegameend2972
    @iambecomegameend2972 Před 8 měsíci

    Never thought about the camera too much, but this is good to know. Great video!

  • @Cass63450
    @Cass63450 Před 8 měsíci +2

    Very insightful and presented understandably. Thank you!

  • @diegomoncadalozano6873
    @diegomoncadalozano6873 Před 8 měsíci +1

    Additionally, the frame size can influence the feel of your game. For example, I've seen a few games take inspiration from Alien Soldier's dash mechanic, with which you can quickly zip from one edge of the screen to the other. However, what a lot of those games miss is that Alien Soldier is displayed in a 4:3 ratio, and thus, each time you dash the screen must pan a little behind you to catch up, and it feels like you're super fast. In contrast, those modern games are displayed in 16:9 and the camera doesn't pan when you dash from one corner to the other, so the effect is greatly deminished.

    • @spindash64
      @spindash64 Před 3 měsíci

      I think you can still replicate that effect in wider screens, you just need to be a bit more creative. For example, Sonic 2,3, and Mania actually put the camera in a brief _look behind_ mode when Spindashing, before the camera runs off to put Sonic in the middle of the screen again.
      Of course, you need to make sure the player gets some level of protection if you're going to have a Look behind moment. The Spindash gets away with it due to it being one of the safest positions for the player to be in anyway

  • @psunami
    @psunami Před 8 měsíci +1

    Every time gmtk uploads, a rush of dopamine grand slams my brain

  • @shawnheatherly
    @shawnheatherly Před 8 měsíci +2

    Some good advice! Eager to see how the camera feels in your game.

  • @Vendal89
    @Vendal89 Před 8 měsíci +1

    My favorite camera shennanigan is how in Sonic 3 (& Knuckles) the camera is deliberatly slowed down when the player builds to much speed in certain situations, like boost pipes in Hydorcitiy Zone. It's fun to imply you are so fast that the game can't keep up.

  • @zacharywong483
    @zacharywong483 Před 8 měsíci

    Superb video and points, as always!

  • @Temzy
    @Temzy Před 8 měsíci +1

    You don't know how happy I was to see Sonic on one of your thumbnails, great video too!

  • @wavelength3856
    @wavelength3856 Před 8 měsíci +1

    Even among the really good game design channels, most of them miss little things like the unintuitive camera tricks that make for great play. I love how you catch the design tricks that most players (and some designers even) never think about, and lay them out in such a clear and concrete way.

  • @moonrez
    @moonrez Před 8 měsíci +7

    I'd really appreciate if you could do a Designing for Disability episode on 3D cameras and motionsickness. There are a lot of games I'm unable to play because the camera makes me extremely nauseated, and a lot of them could be fixed with a few simple changes. I'm sure I'm not the only person like this, and I think someone with your reach could really make a difference.
    In my experience, the faster a camera moves, the more likely it is to cause motionsickness. Fast-paced first-person games are typically the worst offenders, but third-person games with a camera tightly locked to the player can be just as bad. Examples of games I can't even watch trailer footage of are Valorant, Mirror's Edge, and Spyro the Dragon.
    The easiest way to help is to just zoom out the camera and widen the FOV. The more on screen at once, the less the camera has to move, and the smaller those movements can be. In a third-person game, you can have an option for manual camera tracking, so the camera only turns when you tell it to, as well as a slider for camera tracking speed.
    It is also essential that the player can disable motion effects like camera bobbing, motion blur, and dynamic FOV. Changes to the roll of the camera are much more disorienting than changes to pitch and yaw. Last, and I cannot stress this enough, the HUD must not move, as well as any objects fixed to the camera, such as a player's gun or hand. I can accept not playing fast-paced FPS's, but being locked out of games like Outer Wilds because there's no way to turn off HUD rotation (AFAIK) is just depressing.
    IMO an example of a game with a good (third-person) camera is Xenoblade Chronicles. You have so much control: you can zoom out farther than most games would let you, or zoom in so far it becomes first-person. You can have the camera rotate automatically or manually, and adjust the speed at which it automatically rotates. You can adjust the height the camera sits at relative to your character. There's even a button to re-center the camera if things get weird. Best of all, most of these options can be dynamically changed while you're playing, without having to enter the menu.
    The more of these options you add, the better, but even just adding one can make the difference in someone being able to enjoy the game you worked so hard on.

  • @asgads
    @asgads Před 8 měsíci

    Fantastic video. I will actively look now for more camera behaviour in general

  • @Alsoxavi
    @Alsoxavi Před 8 měsíci

    Love this man's videos! I always wondered what is GMTK top 10 in games of all history so far.

  • @figoospalle
    @figoospalle Před 8 měsíci +3

    Really cool video, i feel like the camera is the most overlooked element by regular players, but also there isn't a lot of resource on it dev-side, so thank you.

    • @SolarShado
      @SolarShado Před 8 měsíci +5

      It's definitely one of those "if you do it right, (probably) no one will notice, but if you mess it up, everyone will" things

  • @proxy1035
    @proxy1035 Před 8 měsíci

    8:49 Ultrakill does hitstop really good as well, parrying something makes the game and even the music pause while playing the parry sound.
    it's very satisfying!

  • @diegomoncadalozano6873
    @diegomoncadalozano6873 Před 8 měsíci

    6:09 great of you to show Gravity Circuit! It's the best action platformer I've played in years.

  • @Skeffles
    @Skeffles Před 8 měsíci +1

    Fantastic video! Makes me wonder what is best for my game. It's a isometric management game so it's probably best to let the player take full control, unless I want to highlight something.

  • @chuckchuk14
    @chuckchuk14 Před 7 měsíci

    I love this video!!
    Is there any way that you could do a re-make of your 3D 3rd person camera video but in your more updated video style? Perhaps also including some examples of more zoomed out cameras?
    I feel like it'd be an awesome watch! Thanks for always releasing such awesome content!

  • @mesastreatexit
    @mesastreatexit Před 8 měsíci

    appreciate seeing a bunch of older indie classics as examples here, fun throwbacks!

  • @lunaponta594
    @lunaponta594 Před 8 měsíci

    in celeste mapmaking there are many many camera triggers that you can use to control the feel of the level. there are ones where you offset the camera, ones you set a target, ones you set an area the camera can move inside, etc. it's awesome

  • @eviljaguar064
    @eviljaguar064 Před 8 měsíci

    Wow I’d never even thought how much the camera movement affects the feel of 2D games! I’ll definitely notice it now. Illuminating video as always.

  • @robertjohnson9187
    @robertjohnson9187 Před 8 měsíci

    Your timing is impeccable.

  • @zelenpixel
    @zelenpixel Před 8 měsíci

    this video had me watching some clips i recorded of games ive played to see how their camera works. neat !

  • @cogginsnuff
    @cogginsnuff Před 8 měsíci

    clean video, nailed this topic perfectly

  • @raymk
    @raymk Před 8 měsíci

    Awesome insights as always!

  • @Roxor128
    @Roxor128 Před 8 měsíci +1

    I decided to go and take a look at Commander Keen after watching this. I went with Episode 6, as that one has a shake effect. One of the enemies has an attack where it hits the ground and will temporarily stun you if you're on the ground at the time. The camera effect is very simple: the view lurches up so that the ground ends up at a certain height from the bottom of the screen, then goes back to normal height when the stun wears off. Simple but effective. Doesn't work if you're at the top of the level as that's as high as the camera can go, so you only get the stun sprite on Keen and ground-hit sound effect.
    Normal left-right movement has a small dead-zone near the middle of the screen about four times the width of the player character's sprite. Jumps don't cause vertical movement until you land on a platform or grab a ledge. Falling a long distance will keep you about Keen's height from the bottom of the screen. Using the jump cheat (makes you just keep going up as long as you hold down the jump key) will keep you at the top of the screen when rising a long distance. Going back and checking Episode 4 with its Gimmick Level where you're under water, swimming has a very small dead-zone not much bigger than the player's sprite, but it seems to apply in all directions.

  • @quickkiller5070
    @quickkiller5070 Před měsícem

    I feel like this is one of the more underappreciated parts of games, I'm not a game maker myself but love learning how games are made and this is one of those things where if you did well making your camera and framing shots then your player should never know how much work is put in to making that camera work. good cameras are not noticed but bad cameras are.

  • @haukauntrie
    @haukauntrie Před 8 měsíci

    This is exactly the kind of content I would love to see more of on this channel. Really apprechiate theese "How can you make your game better by making little changes to X" videos.

  • @captainspongeboy
    @captainspongeboy Před 8 měsíci

    Thank you for not saying “dampening”. Appreciated more than you would believe.

  • @shootefly
    @shootefly Před 8 měsíci

    Thank you for this (and all your work really), you're awesome.

  • @SwagScumbag
    @SwagScumbag Před 8 měsíci

    Great job, Mark!

  • @AppleHair
    @AppleHair Před 8 měsíci +1

    1:18 Cave Story jumpscare ( Seriously, it really caught me off-guard )

  • @powerdust015lastname4
    @powerdust015lastname4 Před 8 měsíci

    awesome video, as always with lots of really good advice!
    now i can’t stop thinking about 3d cameras…

  • @BGDMusic
    @BGDMusic Před 8 měsíci +1

    celeste's camera is very well made i think. it has look ahead in the form of camera offset triggers, that when you go inside of, they offset the camera by a set x and y value. celeste also has built in damping, which has the consequence of not having madeline on screen if going fast enough (and celeste is one of those games where speed is unlimited and purely up to the platforms), but the simple solution to that is to set the camera offset higher. additionally, celeste has camera target triggers, which focus the camera on a certain point and makes it stationary. it's only madeline moving on screen. it's up to the map maker to use them well, but it helps make celeste a lot more fair.

  • @h2643
    @h2643 Před 8 měsíci

    Masahiro Sakurai has talked on his channel about the camera in a similar way that you did, his first video even was about the hit stop mechanic that you also mentioned. That said this is a great video!

  • @hippolyte5248
    @hippolyte5248 Před 8 měsíci

    Great vid, as always

  • @CheesecakeMilitia
    @CheesecakeMilitia Před 8 měsíci

    I can only wonder if this is a prelude to a longer video covering 3D third person camera systems. That's such a daunting topic that it feels like multiple dissertations could be written about.

  • @JayFolipurba
    @JayFolipurba Před 3 měsíci

    This is what gamedesign is all about. While developing a game, you're constantly faced with these problems and challenges, but there have been many thousands of people in the last 30 years who already dealt with these and similar problems and challenges, and channels like this one bridge the link between existing, yet hidden knowledge and the fact that we're all born stupid. This is school! and it's cool

  • @JuhoSprite
    @JuhoSprite Před 8 měsíci

    Amazing topic, this will help do many beginners

  • @Lukequest
    @Lukequest Před 8 měsíci

    Thank you this was the only thing that was missing 😊

  • @Bloodyshinta1
    @Bloodyshinta1 Před 8 měsíci

    I was going to bring up shinobi 3 but the Mario example you used is the same concept. To me that's the best for a 2d action game, especially one where you can go fast. It lets you run fast and keep the camera in front of the character so you have time to react, and if you need to quickly stop and step backwards it doesn't give you whiplash by violently repositioning every time you want to make a small precise adjustment.

  • @pepasillos
    @pepasillos Před 8 měsíci

    I do not make video games, but I love your channel.
    You really made it easy to understand, as always.

  • @gamma3501
    @gamma3501 Před 7 měsíci

    What a treat for indie dev! Best theories for Camera movements

  • @realmorteza802
    @realmorteza802 Před 8 měsíci

    So useful video! thank you

  • @stusis
    @stusis Před 8 měsíci

    非常受用,感謝GMTK。

  • @CurtendoDSi
    @CurtendoDSi Před 8 měsíci

    GMTK came in clutch 🙏🏾

  • @kovexplay
    @kovexplay Před 8 měsíci

    That was really insightful! Hopefully it wil help me and many others with game developement 😁
    Plus a minor thing but thanks for using modern terraria footage, I have seen a lot of videos where the game was mentioned but they have shown the state of the game from like over 8 years ago lol

  • @DubstepsHub
    @DubstepsHub Před 8 měsíci

    Mark just dropped the line "in the fantasy basketball RPG Pyre" so casually like that isn't an absolutely insane combination of genres

  • @deadstabb4941
    @deadstabb4941 Před 8 měsíci +5

    Speaking of hyper light drifter, are you able to do a level design video of top down games?
    And how the methods are different/similar to sidescrollers(ie Hollow Knight), how you have to think in a 3d space etc...

  • @frct1
    @frct1 Před 7 měsíci +1

    I recently implemented this in my two player game! The camera defaults to the center point between the two players, with some additional logic. If the players are facing the same direction, I give a look ahead in that direction; otherwise, I keep the camera centered between the two players. The idea is that if the players want to go different directions, the camera doesn't give preference to either player, but if they're looking the same direction, they're on the same page and a lookahead is fine in that case.
    Just thought I would give this additional point unless anyone else is making a two player game.

  • @ElianeGameDev
    @ElianeGameDev Před 8 měsíci

    Thanks for this new video!

  • @Errickfoxy
    @Errickfoxy Před 8 měsíci +1

    Speaking of Enter the Gungeon and cameras, I found the multiplayer camera a bit too tight, so when playing with a friend it was too easy to get caught up on the edges of the screen. I imagine then there's a whole extra layer of concerns for any multiplayer games where you're both playing on the same screen.

    • @abdoreda7126
      @abdoreda7126 Před 4 měsíci +1

      yeah, I had a similar experience. Also, there is a difference to how the camera behaves when you are playing with keyboard and mouse vs playing with a gamepad.

  • @przemysawzanko6700
    @przemysawzanko6700 Před 8 měsíci

    Very interesting, as always! ❤

  • @Ghostabo
    @Ghostabo Před 8 měsíci

    I'm so glad Muno was featured here. From the RoA workshop to the world!!