All Questions

Community

M
Spout Morin

Jump through tiles

I see that in your example at 4:25, you can jump through your platform. Did I miss something? How to make your tile one way collidable?
  • Correct

    It's easy to forget one setting, especially when learning a complex tool like Godot. Like when you code, sometimes a character or a variable name can break the logic.

  • M
    Spout Morin

    It's weird because I already try that and it didn't work.

    I then created a second tilemap with a new tileset and it did works in the end... I wonder what I did wrong with the first one...

  • I don't think we showed it in the course. This is a setting on the tile itself in the tileset. To activate it:

    1. Select the TileMap node
    2. In the inspector, click on the TileSet resource
    3. You should see a list of folded categories: 0, 1, 2. Each of them is the index of a tile. Click to expand the tile you want to make one-way.
    4. Scroll down to "One way" and tick the checkbox

    Save and you can now jump through that tile!