Camera Controls - Intermediate Tutorial - GDevelop

Поділитися
Вставка
  • Опубліковано 20 гру 2024

КОМЕНТАРІ • 100

  • @numgun
    @numgun 2 роки тому +18

    Learned a lot! Made me rethink how to view and control visible stuff on screen.
    I had no idea each layer can effectively have its individual camera and that they can all zoom differently - like they all exist in different dimensions and bring back what they individually see to create the final screen that the player sees.
    I originally believed theres is only one true camera and that everything needs to be conformed to it.

  • @NickRossi
    @NickRossi 11 місяців тому +1

    I just purchased your Silver Plan today. You all have seriously changed my life. I am making games so much faster and easier than before. Thank you so much for all your hard work!

  • @funnyvideos99379
    @funnyvideos99379 2 роки тому +8

    Please Help. How to make countdown timer run in background to restore heart in platformer game in gdevelop.

    • @GDevelopApp
      @GDevelopApp  2 роки тому +9

      Create a timer at the beginning of scene, and then create an event with the condition "if timer is above X time", and the actions "add 1 to health"(Or whatever variable you're using) and "reset timer".
      Make sure the timer is of the same type and has the same name. 👍
      -Wesley

    • @funnyvideos99379
      @funnyvideos99379 2 роки тому +2

      @@GDevelopApp Thank you. But i also want the timer to run in background when the game is closed.so is there any way of doing that for now.

  • @locosporflutterydart3874
    @locosporflutterydart3874 8 місяців тому

    It seems like I've found the game engine I was looking for. These videos are very helpful and inspiring. I've tried countless 2D game engines, but the ease of use of this engine plus the really helpful videos have led me to switch to GDevelop. Thanks for these videos.

  • @AngelicDirt
    @AngelicDirt 2 роки тому +3

    Dunno if this will help, but it certainly helped me:
    When using "Enforce Camera Boundaries", you basically need to think of the size of your MAP that you want the character to traverse, rather than the position of any said camera. While it just so happens to be that they're the same thing, that kind of thing doesn't always mesh in my head-meats... :P
    Ergo, 'Left' = LEFT WALL's position, 'Top' = TOP WALL, 'Right' = RIGHT WALL, 'Bottom' = BOTTOM WALL (or the floor, depending). Pretty sure it wasn't written that way in interface for redundancy reasons, but my brain is made of mush sometimes, and I'd figured I'd share the experience. Maybe it'll help. :B
    Thanks, have a nice day, and happy game making~

  • @nirmaldavid8822
    @nirmaldavid8822 2 роки тому +5

    Thanks for this..
    The way Gdevelop handled cameras with each layer was super confusing for me, especially coming from a Construct-2 background. Took me a while to get my head around it.
    This tutorial will be great help.

  • @PitBaldriz
    @PitBaldriz 2 роки тому +4

    Great tutorial! Would be amazing to have a maps tutorial or a cut-scene tutorial. Thanks! Keep the good work

  • @Stefano_Gaming
    @Stefano_Gaming 2 роки тому +2

    Thank you so much, this helped me A LOT with a game I am currently working on.

  • @LORDSofCHAOS333
    @LORDSofCHAOS333 2 роки тому +3

    will love to know if its possible to create a VHS or a fake 3D filter

  • @mafiartx
    @mafiartx 2 роки тому +2

    Thanks mate, i was searching for this

  • @youtubewatcher6124
    @youtubewatcher6124 2 роки тому +4

    Can you make a Link Object Tutorial soon?
    The example tutorial and wiki in GDevelop are too hard for me to understand.
    I've met a roadblock where I have this object that is used multiple times and I want it to have different actions.
    Example:
    A Tank object equipped with a Cannon object that have limited bullets, I spawn multiple copies of that each with a corresponding Cannon Object that have limited number of bullets.

    • @GDevelopApp
      @GDevelopApp  2 роки тому

      We made an object picking tutorial, but it neglected linking objects, so that's definitely an oversight. I'll add it to the list. 👍
      -Wesley

  • @crazyAI3rix
    @crazyAI3rix Рік тому +2

    is it possible to show how to swap cameras between characters and make the camera follow player

    • @GDevelopApp
      @GDevelopApp  Рік тому +1

      Have 2 separate events, both for moving the camera for one of the players, and have a variable as the condition. Do something to change the variable from 0 to 1 and vice versa, and use the variable being 0 as a condition for 1 camera event and the camera being 1 for the other camera event.
      -Wesley

  • @MeajnL08
    @MeajnL08 4 місяці тому

    Thanks! is there any way to center the camera in between two objects?

  • @AFKei
    @AFKei 2 роки тому +2

    When I did this, the camera is off-center and it won't center on my character. It's making my character sit off to the right and I don't want that.

    • @GDevelopApp
      @GDevelopApp  2 роки тому +2

      Try using .centerX() instead of .X(). 👍
      -Wesley

    • @AFKei
      @AFKei 2 роки тому +2

      @@GDevelopApp That did the trick! Thanks!

  • @Assessed322
    @Assessed322 Рік тому +2

    lerp(CameraCenterX(),Player1,x(),0.05) mine isn't working

    • @ibikun5493
      @ibikun5493 Рік тому

      Me either. They really should have updated tutorials. But ill keep trying and bring info if i figured it out.

    • @ibikun5493
      @ibikun5493 Рік тому +1

      I got you my man:
      lerp(CameraCenterX(,0),Hero.X(),0.05)
      (Make sure that your player1 is actually the name of your character that you are following, as you can see my main character is called "Hero". Then add Point(.) X, not a comma.
      Ask if you still have questions!

    • @Butterscotch68
      @Butterscotch68 6 місяців тому

      No ita because u put a comma instead of a period on player1.x it's supposed to be .x not ,x

  • @editcim1475
    @editcim1475 2 роки тому +2

    I have two questions, if I publish the game I made with gdevelop and earn money, will I give you a share and will the 3d feature come?

    • @GDevelopApp
      @GDevelopApp  2 роки тому +3

      Every cent you earn from your game is yours. We don't take any cuts.
      And currently we're focusing on making GDevelop the best no code 2D engine it can be. 👍
      -Wesley

  • @DaNerdOne
    @DaNerdOne 2 роки тому +3

    as always an useful and well explained tut, thank you.

  • @velmacariss3383
    @velmacariss3383 2 роки тому

    I watched this to move my camera for the title sequence. No player input to map too. It's proving very challenging.

  • @halrym48
    @halrym48 2 роки тому +1

    I have a question: How can I make multiple cameras display at the same time? Something like the split-screen multiplayer in Super Mario Kart

  • @Sleepyhead_Chrl
    @Sleepyhead_Chrl Рік тому

    It zooms in but it doesn’t move along with the character. I’ve been trying to fix this for days, and I go to programming classes where they use gdevelop as their game engine, but the game I’m making right now has nothing to do with those classes, so I can’t really ask for any help currently. I don’t know why it’s not following the character since I did everything step by step. Any idea how to fix it?

  • @dosdee
    @dosdee Рік тому +1

    Please I've been stuck on something as a newbie to Gdevelop5 😭. Please how would you make the camera move along a path instead of following the player?

    • @GDevelopApp
      @GDevelopApp  Рік тому

      There are actions for "tweening" the camera. Those are what you're looking for. 👍
      We have a video on tweening objects, and the concept is pretty similar for the camera, so maybe watching that video will help.
      -Wesley

  • @iurireichenbach
    @iurireichenbach 2 роки тому +1

    Really helpful Tutorial

  • @robertoesq5257
    @robertoesq5257 8 місяців тому

    How do I make the camera zoom more or less depending on the distance between 2 players in a fight scene?
    I think a tutorial on the channel for cameras in local multiplayer games would be good, either for cases like mine or split screens.

    • @KatTheOneAndOnly
      @KatTheOneAndOnly 7 місяців тому

      Just do "Distance between (player 1) (player 2) = Change camera zoom" aslong as they're seperate objects

  • @wongaiintelligencestudio
    @wongaiintelligencestudio 2 роки тому +2

    HOW to do maps( show player location)

    • @aurel3117
      @aurel3117 2 роки тому

      Ok Google, show me where i am on a map.
      (You can I think duplicate the objects and clamps the position of the original objects under a new origin, I think I already see a tutorial for it on YT from someone else)

    • @wongaiintelligencestudio
      @wongaiintelligencestudio 2 роки тому

      @@aurel3117 i want do a profesional map like pubg, mobile legend or any big game. Their map very professional

  • @BeF1990
    @BeF1990 2 роки тому +2

    As always great tutorial. Thx!

  • @Loots_Deals_By_SRK
    @Loots_Deals_By_SRK 2 роки тому +1

    G develop can you tell full method of
    exporting game to the play Store from zero

  • @yuvrajaggarwal3587
    @yuvrajaggarwal3587 2 роки тому +2

    I would love to see a tutorial on split screen.

  • @niilokolehmainen
    @niilokolehmainen Рік тому +1

    how do i make the ui follow the camera?

    • @GDevelopApp
      @GDevelopApp  Рік тому

      Put it on a different layer and don't use a camera on that layer. It'll stay where it is relative to the black rectangle you see in the game editor then. 👍
      -Wesley

    • @niilokolehmainen
      @niilokolehmainen Рік тому

      @@GDevelopApp thanks

  • @ГеоргийТрубецкой-й8й

    Really good guide, thanks a lot.

  • @diegorarinca7288
    @diegorarinca7288 2 роки тому +1

    Hi, I really enjoy knowing more things about this incredible platform GDevelop... Thank you a lot for posting some tutorials that can help us, just a thing...
    I am making a game and i would like to add an action for escape, like :
    press ->

    • @GDevelopApp
      @GDevelopApp  2 роки тому +1

      You could use a boolean variable, and toggle it back and forth with the toggle boolean variable action. And then if it's true set it to trigger using the right arrow, and if its false trigger with the left arrow. And then have a second variable that gets added to each time you press the keys until it reaches a certain number, and when it reaches that number you let the player have their controls back.
      Or at least that's the first way of doing it that comes to my mind. 😅
      -Wesley

  • @irayala
    @irayala 2 роки тому +1

    and what kind of magic? why if I move the character and the level to another layer and this formula stops working ...? and how to do if I need to place the character and the details of the environment on different layers? apparently the formula is tied to the base layer

    • @GDevelopApp
      @GDevelopApp  2 роки тому

      You can set which layer is effected in the camera action. 👍
      -Wesley

    • @irayala
      @irayala 2 роки тому

      @@GDevelopApp I have a layer "level" on it there is a character and the environment of the level and in the formula for the tutorial, of course, I set the layer "level". and the formula doesn 't work . I move everything back to the base layer and delete the layer name in the formula and normalize everything.
      of course, nothing prevents everything from being placed in the base layer, but if the game involves a lot of sprites, then it's damn difficult to place and change it all.

    • @irayala
      @irayala 2 роки тому +1

      @@GDevelopApp I figured out how to do it, it dawned on me)))

  • @Rawaamohammed-z5q
    @Rawaamohammed-z5q 4 місяці тому

    Why always my camera shows out of the scene? Left and bottom side, can’t find any solution for that I’m starting to giving up :(

  • @erino_0
    @erino_0 Рік тому

    How I make the health bar stay where I want it. It stays in the same place but relative to the camera box and not the player, it also moves position when I resize the window. How do I prevent this?

  • @stockgoogle1511
    @stockgoogle1511 Рік тому

    Thanks again, could you please make a video on how to avoid screen touches to be accounted for again after the scene has changed ? thanks.

  • @editcim1475
    @editcim1475 2 роки тому +1

    Can we play online games with gdevelop?

  • @hadisonic6838
    @hadisonic6838 2 роки тому +1

    my object cant move when i center the camera on it

    • @GDevelopApp
      @GDevelopApp  2 роки тому +1

      Are there other objects in scene that are moving when you try to move the object with the camera centered on them?
      Maybe you could get rid of your events and try the smooth camera extension instead, it's shown in the top 10 extensions video.
      -Wesley

    • @hadisonic6838
      @hadisonic6838 2 роки тому +1

      @@GDevelopApp i deleted the event and redone it and it worked,thanks

  • @AvectaInteractive
    @AvectaInteractive 2 роки тому

    Very helpful as always, but just curious what would the camera number be for? All I can think of is to use it to jump between different cameras perhaps

  • @nichocava8409
    @nichocava8409 2 роки тому

    how to animate a palyer and enemyes death with timer and flashblink please 🙏🏼

  • @BlahoogaDMD
    @BlahoogaDMD 2 роки тому +1

    i already lknow this stuff from trial and error and experimenting, but i just cant NOT watch a GDevelop video

  • @Aleefmeem
    @Aleefmeem 5 місяців тому

    How to make camera follow mouse slightly

  • @isfunart
    @isfunart 2 роки тому +2

    nice more tutorial

  • @LXDFN
    @LXDFN 2 роки тому

    can you help when putting things they get hidden

  • @lukewilliamson4642
    @lukewilliamson4642 11 місяців тому

    Camera feature is currently not working on iPad just to make gdevelop aware.
    Camera doesn’t follow the player
    And player seems to follow the camera
    Tried a simple thing just to test this
    Added a static sprite for a background
    Added a character sprite and simply added a force to move right.
    On events simply added follow character(object) on x.
    Then nothing happens. Camera stays where it is and character goes right off the screen
    This does work on phone however

  • @zompleafx3580
    @zompleafx3580 2 роки тому +1

    Can You Make a Bossfight Tutorial

  • @kaijukaiju13
    @kaijukaiju13 2 роки тому

    Can I create procedurally generated land and water

  • @reinansampaio
    @reinansampaio Рік тому

    Como fazer para o controle ficar seguindo a câmera? Os controles fica para trás depois que a câmera avançar

    • @VectorAlvez
      @VectorAlvez Рік тому

      É isso que eu queria resolver,pois estou fazendo um jogo pelo celular

  • @barnsjohn
    @barnsjohn 2 роки тому

    How can I make different rooms?

  • @Rotceev
    @Rotceev 2 роки тому

    Hi, could it be possible to make something like Questlord/Eye of the Beholder with Gdevelop? A first person Dungeon Crawler?

  • @LORDSofCHAOS333
    @LORDSofCHAOS333 2 роки тому +1

    how about we get a full tutorial on fighting games or how to make smart IA in a game who gets harder on every new level or difficult

  • @Gamer-zu5ob
    @Gamer-zu5ob 2 роки тому +17

    i hope in future they should add 3d feature🔥🔥🔥🔥🔥

  • @HuskgamerI
    @HuskgamerI 2 роки тому +5

    I have some questions like
    Can I make a board game 🎲 ?
    Can I make a 2.5D game 🎮 ?
    Can I make a RPG game ⚔ ?
    Can I make an online game 🌐 ?

    • @halrym48
      @halrym48 2 роки тому +1

      The answer to all those questions is... Yes, of course it is possible!

    • @HuskgamerI
      @HuskgamerI 2 роки тому

      Thanks for your answers
      KamiQu
      Aaron Piñero

  • @frizmagnet2246
    @frizmagnet2246 8 місяців тому

    And my brain just turned melted lol, I’m going to put this on half speed.

  • @zixenvernon1643
    @zixenvernon1643 Рік тому

    It doesn't work, my camera doesn't follow the player no matter what I do :( The square stays exactly the same when I try both methods and it doesn't even more even after changing the camera to every layer in the game

    • @GDevelopApp
      @GDevelopApp  Рік тому

      I suggest you take some screenshots of your events/what's happening in your game, and share that on the GDevelop discord/reddit to see if some community members there can help you. 👍
      -Wesley

  • @adamarnold9712
    @adamarnold9712 2 роки тому

    Please do on these tutorila

  • @ReapeX
    @ReapeX 2 роки тому +1

    Thank you :D

  • @creeper10mil
    @creeper10mil 4 місяці тому

    I don't understand the comand are hard, in especial lerp()Unknow and this

    • @creeper10mil
      @creeper10mil 4 місяці тому

      Ademas hablo español
      I'm speak spanish

  • @ludmilanascy
    @ludmilanascy 2 роки тому +1

    Need a advanced tutorial, because when we put some objects in different layers, a lot of bugs happened.

    • @GDevelopApp
      @GDevelopApp  2 роки тому

      Bugs like what exactly? 🤔
      -Wesley

  • @adamarnold9712
    @adamarnold9712 2 роки тому

    How to do p2p games?

  • @lojutuselmejor1640
    @lojutuselmejor1640 2 роки тому

    good tutorial, although I would like it in Spanish :D

  • @axushax6904
    @axushax6904 2 роки тому

    how to make a turn based strategy game?something like chess?how to set chess pc ai?

    • @youtubewatcher6124
      @youtubewatcher6124 2 роки тому

      Chess AI is way too advanced I think if you're just starting like me

  • @MordproThebestYTonTheWORLD
    @MordproThebestYTonTheWORLD 2 роки тому

    how to add a boss fight tutorial

  • @erkling5865
    @erkling5865 2 роки тому

    a tutorial on using java? 😁

  • @maryzakiandourrugrats4671
    @maryzakiandourrugrats4671 6 місяців тому

    doesnt work

  • @FILMUS2023-i3b
    @FILMUS2023-i3b Рік тому

    чсм

  • @toobad4youman501
    @toobad4youman501 10 місяців тому

    You move too fast Wesley. Not all of us know GDevelop like you do. You need to explain things to cave men in your videos if you want people to understand them. If you are noticing thousands of views on your video tutorials it is because everyone is still lost and they have watched your non helpful videos a thousand times trying to understand what to do when you only describe small portions of the techniques and you go so fast nobody can follow. I need more than a speed through crash course I need to know why things work when this program is so glitchy and everything I program crashes the system. I need to know why it seems to work for you but not me.