How to Add Tilemap Collisions in Godot 4

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

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

  • @Korn1holio
    @Korn1holio Год назад +32

    A shout out to Godot devs: the Tilemap is improved, but it still is a confusing maze. For example, just to draw tiles you have to ensure you have got both pen AND pointer in the upper left corner selected, otherwise it will simply do nothing. What about the need to explicitly add physics to tilemap? This setting (Physic layer) is so deeply hidden that you can't find it unless you watch this tutorial! Why disable the 'physics' property in the tiles properties, why not allow us to enable physics from the properties themselves, instead of staring at the disabled "physics" option and wondering where this is turned on?

  • @luisces
    @luisces Год назад +22

    For people lookign for the physics layer, you got select it in the inspector, create a new one if it does not exist, and then upon selecting a tile on the TileSet tab, you will get the options.

    • @Korn1holio
      @Korn1holio Год назад +5

      thanks, it's pretty hard to find. Despite all the improvements, they really screwed up with this setting.

    • @alrineusaldore6764
      @alrineusaldore6764 Год назад +1

      I had a hard time understanding it but your comment cleared it up! Thanks!

    • @justvictorgd
      @justvictorgd 8 месяцев назад

      What if I can't add a physics layer?
      EDIT: Solved it. If this happens to you, you're editing an instance of the node, not the actual node itself.

  • @raptorswire7212
    @raptorswire7212 Год назад +6

    this tutorial needs to expand more. There is definitely more to it, for example copying the collider shape between tiles, rotating and stuff

    • @The_Soup_Wizard
      @The_Soup_Wizard Год назад +2

      Can you actually copy the shape between tiles?? I'm struggling to figure that out.

  • @RyanScottForReal
    @RyanScottForReal 2 года назад +13

    Thanks for doing this. Tilemaps are pretty complex in Godot 4, would love more info especially about coding with them!

  • @metallica1171
    @metallica1171 8 месяцев назад +2

    couldnt find the physics layer thank you a ton!

  • @spacepunchgaming6732
    @spacepunchgaming6732 28 дней назад

    I hope that you can do an updated revision of your tutorials since its been a couple years! Thanks very much!

  • @roathripper
    @roathripper 2 года назад +3

    hi chris, in your view does Godot 4 make improvements to the tilemap features enough to warrant a change in workflow? I've got Tiled map editor and Pyxel Edit and using Godot 3.4.4. I'm about to embark on a writing an RPG and wondering which is the best approach. Is it even advisable to upgrade to Godot 4 as it's a fairly new release?

  • @huangrichard8466
    @huangrichard8466 2 года назад +5

    Hi Chris, I'm using Godot 4 alpha12 and I couldn't find the item "Physics Layers" in inspector of tilemaps. Any suggestion? Thanks.

    • @albertchosenko8514
      @albertchosenko8514 Год назад

      select the tileset in the inspector, then add a physics layer.

  • @ejun251
    @ejun251 9 месяцев назад

    I literally missed the dropdown for the tileset. Thanks for the help. I can't believe I missed that.

  • @urz0
    @urz0 Год назад

    Chris its you again your videos and the help they provide!!! thank you for them

  • @loftus8660
    @loftus8660 11 месяцев назад

    Thank you for this! Great video, nice and concise while also giving the key details needed to tackle it. Really useful :)

  • @evarose-wj3zc
    @evarose-wj3zc Год назад

    I was looking 30 minutes where this option to add collider is after watching this video I finally have working collision shape :D

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

    for some reason this isn't working, the player still goes through objects even though i followed the tutorial exactly

    • @خلصذيب
      @خلصذيب Месяц назад

      did you find a solution :) ? im so annoyed rn

  • @shaund.09
    @shaund.09 9 месяцев назад

    Hey there, great video. I wonder how we can do this nicely with the isometric tilemap too. Especially when it comes to handling the top/bottom/left/right collisions as you might not necessarily have a specific edge tilemap. Hmm...

  • @MrJQ3d
    @MrJQ3d 4 дня назад

    Great lesson, and what if need I collide an enemy? This way is not working on enemy for me , could you show me how to?

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

    Is it possible to apply a physics layer to multiple tiles at once? I've found small deviations from tile to tile cause the player to get hung up.

  • @albertchosenko8514
    @albertchosenko8514 Год назад +2

    I dont have a 'physics' tab in the tileset

  • @Akamo.
    @Akamo. Год назад

    Thanks. This was driving me nuts.

  • @abraxas8
    @abraxas8 Год назад +1

    How can I detect in the Code, which Tilemap Part I touched?

  • @zaftnotameni
    @zaftnotameni Год назад +1

    hey this is awesome, but i'm struggling with something adjacent to what you show here... occlusion layers, do you know where to add that in the new TileMap ?

  • @mayedalshamsi
    @mayedalshamsi 5 месяцев назад

    Is there a way to just add a collision shape to the entire tile, without having to manually draw it?

  • @JeffLuntGames
    @JeffLuntGames 4 месяца назад

    Thanks for the explanation - great video.

  • @MaxIzrin
    @MaxIzrin 5 месяцев назад

    Very good video, works perfectly, thanks.

  • @neontetra7208
    @neontetra7208 Год назад

    somehow doesnt work for me, the player still appears above the tiles i made for collision

  • @BasementStudi0s
    @BasementStudi0s 7 месяцев назад

    so glad im in godot now, features like this would never be on gamemaker

  • @betadyne9559
    @betadyne9559 Год назад

    Thanks, all the info I needed were in that video !

  • @roastinpeace2320
    @roastinpeace2320 Год назад +1

    Can you duplicate the shape? If you have for example 500+ blocks that have specific collision shape and you don't want to draw it manually 500 times?

    • @ycar_
      @ycar_ Год назад

      Use a second layer with transparent tile and draw collision tiles is your best bet

  • @PatrovskyG
    @PatrovskyG 11 месяцев назад

    What if I haven't got a Physics Layers under a TileMap and I cant do anything with it?

  • @daxter3388
    @daxter3388 8 месяцев назад

    How can I manage the collisions with this hitbox?

  • @JerEmY_mcJeREMey_FAce
    @JerEmY_mcJeREMey_FAce 11 месяцев назад

    thanks this actually worked

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

    When drawing the physics collision box it seems utterly random when it actually saves it

  • @tiagoc9754
    @tiagoc9754 Год назад

    You saved my day. Thanks!

  • @ericbendeolindosoares5563
    @ericbendeolindosoares5563 Год назад

    Thank you so much, its exactly what i needed

  • @WhiteWilma
    @WhiteWilma Год назад +4

    i dont see physics layer

    • @AkaiKnight
      @AkaiKnight Год назад +2

      you have to add a physics layer first in the properties of the TileSet. Click on your Tilemap, then click on your Tile set, then under Physics Layer add element

  • @yess.6558
    @yess.6558 Год назад

    Beautiful. Thank you so much.

  • @fruitdudetv
    @fruitdudetv Год назад

    did they remove the step attribute in Godot 4.x ?

  • @jtvalente
    @jtvalente 11 месяцев назад

    Legend thank you!

  • @pepey003
    @pepey003 4 месяца назад

    you are the best thank so much, froma atgentina gracias papa

  • @Jamato-sUn
    @Jamato-sUn 9 месяцев назад

    Why aren't you using Painting? You had three very similar tiles there.

  • @dsamuel2116
    @dsamuel2116 Год назад

    Thanks! Super helpful!!!

  • @ninjapanda1018
    @ninjapanda1018 Год назад

    Thanks a lot for the help

  • @mmorenopampin
    @mmorenopampin Год назад

    has anyone figured out how to toggle these new tile collision layers in godot 4 via gdscript?

  • @timdavidfriedrich
    @timdavidfriedrich Год назад

    Thank you so much!

  • @quantum_ai457
    @quantum_ai457 10 месяцев назад

    Thanks!

  • @RexDemon333
    @RexDemon333 Год назад

    Thanks 😩🙏

  • @jorgeramos1746
    @jorgeramos1746 Год назад

    I LOVE YOU BRO

  • @itzaneesh4638
    @itzaneesh4638 Год назад

    thank you

  • @GragCM
    @GragCM 5 месяцев назад

    thankyou

  • @ra-br9bm
    @ra-br9bm Год назад +3

    No physics layer for me 👍

    • @AkaiKnight
      @AkaiKnight Год назад +1

      you have to add a physics layer first in the properties of the TileSet. Click on your Tilemap, then click on your Tile set, then under Physics Layer add element

  • @Ruxmew
    @Ruxmew Год назад

    estaba toda la tarde viendo como hacer esto porque no encontraba la funcion "physics layers" no saben lo tonto que me senti al minuto 0:37

  • @nesyta1749
    @nesyta1749 7 месяцев назад

    For me there is no physics either. So very well modified.

  • @geams
    @geams Год назад

    Goodbye, Unity. Hello, Godot!
    For a hobby dev like me, Unity doesn't make sense anymore, especially since Godot also supports C#.