GDevelop - How to Push Objects in a Platformer Game

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

КОМЕНТАРІ • 58

  • @paulerapedreira
    @paulerapedreira 4 роки тому +11

    If you create an additional point just below the Player’s feet, you could use the "Point inside object" condition applied to the Box sprite to detect when the Player is on top of it. Extra points could also be used to tell whether the side collision is happening from the left or from the right.
    Cool art btw!

    • @cltr_shft
      @cltr_shft  4 роки тому +1

      Nice! thanks Paulo, that's a great advice, i will definitely try that :)

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

      @@cltr_shft make tut how to grab a object pls

  • @Liswee
    @Liswee 4 роки тому +5

    Hello, you have totaly the best gdevelop tutorials, thanks for that! I tried to implement Chest push yesterday and did it by adding invisible push collision object that makes little hitboxes on both side of the chest, used topdown movement, physycs and platform behavior on that chest nad typed if my character is in collision with those hitboxes activate topdown movement behavior and if not then not. Allso did it by help of your previous tutorial of AI (The hitboxes).

    • @cltr_shft
      @cltr_shft  4 роки тому +1

      Thanks for feedback :) yes you can do these things in many ways , and I am glad my tutorials are helpful :) stay tuned for more

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

    I couldn't find a tutorial on this, what your video covers is what I originally wanted to do. But, since I didn't know it was possible I made my own solution.
    Where a rock checks whether a player is colliding with it. If it is, the rock will move in the direction the player is facing by using an instant force. So, it's more like kicking the rock than pushing it. When the rock isn't touch anything, assume it is in the air. If it's in the air, then apply a force downward to cause the rock to fall. This was my solution, not sure its the best solution either but it works for me.

  • @ittaloornilo
    @ittaloornilo 4 роки тому +4

    Another amazing tutorial as ever!

    • @cltr_shft
      @cltr_shft  4 роки тому

      Thank you! Glad you liked it :)

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

    Thanks for the helpful video...
    I was curious if you could use a relative standoff position to push box or should make the hitbox larger so it appears pushing the edge of box? Also, could you use a "flip_x" style of reversing for each direction?

  • @blue_mustang_
    @blue_mustang_ 2 дні тому

    It works like a charm , thank you so much!

  • @teket4
    @teket4 4 роки тому +4

    omg thx this tutorial will help me

  • @pastamanofficial
    @pastamanofficial 3 роки тому +1

    I can push the boxes left and right but when i try to go on top of them the clip through the ground.

  • @morty7148
    @morty7148 4 роки тому +1

    bye the way I love your Containt and your Intro

  • @killer_ice5601
    @killer_ice5601 4 роки тому

    put in the |move "box" away from "player" (only "box will move")| code line it will make it so when in collision it will move the way you are walking
    in top down like "bomb the crate" templete

  • @aaronwise1089
    @aaronwise1089 3 роки тому

    You can use move avoiding and use a platform character behaviour and disable default controls

  • @dicarlostrujillo
    @dicarlostrujillo 4 роки тому

    High quality tutorial here!
    in order to avoid the "stickiness" of the box I added
    If "the Y position of Player_Hitbox is Greater or equal to BOX.Y() / Move BOX away from Player_hitbox (only BOX will move)
    The problem is that now the box can be on top of the player and be carried around, so.. it could be a feature?

  • @Ilbakit
    @Ilbakit 3 роки тому

    Great video!
    But... Why so much stuff?
    Create Box with behaviours "Player character" + "Platform".
    Add an action "when hitbox collide with Box > Box separate from hitbox".
    Same result with 1 action.

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

    You could have added condition "if player is on floor"... Simple

    • @AnneBeignatborde
      @AnneBeignatborde Місяць тому

      But the box is also a platform so when the player is standing on the box it's in the floor.

  • @sweetgoblin
    @sweetgoblin 3 роки тому

    Wessshh bro your intro is horror than any other movie

  • @Nodata404_
    @Nodata404_ 4 роки тому +1

    Amazing tutorial

  • @icedoutcray6069
    @icedoutcray6069 4 роки тому +1

    i love this i was aking if you could do a tutorial on making a loading bar

    • @cltr_shft
      @cltr_shft  4 роки тому

      Hey thanks, for what exactly you need a loading bar for ?

    • @icedoutcray6069
      @icedoutcray6069 4 роки тому

      @@cltr_shft im making a 1920 X 1080 platformer game so i guest a loading UI would hide the loading of assets into a scene, collection of initial game variables and Data.

  • @egoistoooooo
    @egoistoooooo 3 роки тому

    I'm adding an pushing animation to it but it keeps showing only the first frame of the animation. help plssss :((

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

    Weird. I'm using V5 - but when a try and add the 'Simulate key press' action and select the object I get a "The behaviour is not attached to this object" errors. My object definately has platform and player behaviours. Anyone know another way around this?

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

    Please make a tutorial how to make background

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

      Do you mean how to create parallax background?

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

      @@cltr_shft I mean the background in your Mighty Rune game have created by yourself or just downloaded from internet

    • @cltr_shft
      @cltr_shft  4 роки тому +3

      JustFlyAway ah, yeah, everything in my game I have created from scratch :)

    • @justflyaway1389
      @justflyaway1389 4 роки тому +3

      @@cltr_shft wow Can you make tutorial how to create that

    • @cltr_shft
      @cltr_shft  4 роки тому +3

      JustFlyAway ok. I will think about some nice pixel art tutorials for backgrounds :)

  • @kaqyn
    @kaqyn 4 роки тому +1

    You can also use physics engine 2.0!

    • @cltr_shft
      @cltr_shft  4 роки тому +1

      Yes, you can, this method is just a little bit easier and faster

    • @kaqyn
      @kaqyn 4 роки тому +1

      I agree! This method is way more convenient. I use physics engine 2.0 just for the subtle bounce when the object hits the ground.

    • @cltr_shft
      @cltr_shft  4 роки тому +1

      Kaqyn oh yeah, bounce would make it look cooler

  • @andrique2007
    @andrique2007 4 роки тому

    Thanks for the tutorial!

  • @tiangelart3816
    @tiangelart3816 4 роки тому +1

    Maybe you can change the animation when you push, so it looks realistic, do you know how to do it, brother?

    • @cltr_shft
      @cltr_shft  4 роки тому +3

      Yes sure, once you have created a pushing animation, just exclude it when you have the run animation (so basically when you do not push the object) and include it when you push the object

    • @tiangelart3816
      @tiangelart3816 4 роки тому +1

      Thank you for always making gdevlop tutorials brother

  • @teket4
    @teket4 4 роки тому

    please make video about smooth camera movement

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

      Hey, tomorrow i will publish a tutorial on smooth camera, i found a very simple way to do that.

  • @miya1285
    @miya1285 4 роки тому

    this is good but the box sometimes follows the player when moving away from the box.

    • @cltr_shft
      @cltr_shft  4 роки тому

      This might be due to hitbox area, try to reduce that a bit

    • @miya1285
      @miya1285 4 роки тому

      @@cltr_shft the issue is that when trying to move away while still in the players hitbox, the box stays on the player

  • @SunilNmb
    @SunilNmb 4 роки тому

    Please make an android version for TMR its easy, but only you can do it

    • @cltr_shft
      @cltr_shft  4 роки тому

      Hey, I know it’s easy. But there are a few issues I need to fix first and do some optimisation

    • @SunilNmb
      @SunilNmb 4 роки тому

      @@cltr_shft kk.. I will wait

    • @SunilNmb
      @SunilNmb 4 роки тому

      And, yeah will the game be free? 😊

    • @cltr_shft
      @cltr_shft  4 роки тому

      @@SunilNmb I still didn't figure out proper model, but I will definitely want to make some money out of it :) PC, MAC and Linux versions will be paid for sure

    • @SunilNmb
      @SunilNmb 4 роки тому

      @@cltr_shft oh, nvm cuz my hope is on android.

  • @anonym3809
    @anonym3809 3 роки тому

    8:56 xd

  • @paulerapedreira
    @paulerapedreira 4 роки тому +1

    First! yay \o/

  • @aaronwise1089
    @aaronwise1089 Місяць тому

    i can upload a video on how you can pull a platformer box if you want. if this comment gets 40 likes