Detecting Collision Between Two Characters #181
Replies: 2 comments 6 replies
-
Hi @matthewbean, The way collision detection works in the plugin is that a tile/square/field is considered to be blocking if the position contains either a 'colliding' tile on any layer of the tilemap OR a character. Since lately there is a config flag that allows you to disable collisions for a character completely. However, this means that this character will not collide with anything on the map. So it could walk through walls and so on. So am I right with the assumption that you would like to have your enemy-NPCs to still collide with the tilemap but NOT with the player? If so, should they collide with each other (should an enemy collide with another enemy)? Based on your demands I could add a flag that would allow you to specify collision detection more precise. |
Beta Was this translation helpful? Give feedback.
-
Almost seems like collision layers would be the logical next step 🤔 |
Beta Was this translation helpful? Give feedback.
-
Hi there, I really appreciate you creating this and making it much easier to create tile base games. The one thing I am running into that I cannot find an answer to, is how to allow collision between two characters and how to detect it. For example, I would like to have multiple NPC characters walking around randomly as enemies, and I would like to detect them colliding with the hero for damage and such. As of right now, they seemed to be just walking around and refuse to walk in the same square is my character. Is there a way to deactivate this collision detection behavior and detect if there is a collision that happens?
Beta Was this translation helpful? Give feedback.
All reactions