This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I am planning to make a youtube video explaining everything about the Godot Tilemap Node, and I am unable to explain the specific use cases of certain methods no matter how hard i am brainstorming it, although i understand what those methods do. I am looking for creative ways to use that methods to create new game mechanics.

The following are some such methods::

getcollisionlayerbit, setcollisionlayerbit
getcollisionmaskbit, setcollisionmaskbit
iscelltransposed
updatebitmaskarea
updatebitmaskregion
updatedirtyquadrants
I hope someone answers this nagging doubt of mine.

Godot version 3.3
in Engine by (14 points)

1 Answer

0 votes

Collision layers can be used for only letting certain actors interact with the tilemap, e.g. the player can collide with the tilemap but not the enemies.

I guess collision mask could be used if you want to put collision logic on the tilemap itself.

Is cell transposed can be used if you want to do something if a cell is altered in any way?

The update bitmask stuff can be used if you want to modify bitmasks in code instead of through the editor.

Update dirty quadrants is for if you just modified the cells of the tilemap and you want collision and navigation to also be updated right away.

by (8,580 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.