TileMap collisions are not removed/changed when set_tile is used (#4829)

#1

To replicate:

  1. Create a tilemap with a factory.
  2. Use set_tile to change a collision tile to a different tile.

Minimal example: SetTileCollisions.zip (31.0 KB)

Possibly related:

1 Like

#2

Hmm, strange, I thought we had fixed this. @JCash what are your thoughts on this?

1 Like

#3

No real idea I’m afraid, we’ll just have to take a look at it again.

1 Like

#4

New game, same issue. Any revelations in regards to this?

0 Likes

#5

Sorry, no. We haven’t had time to look into this yet.

0 Likes

#6

It feels like this should be fairly easy to solve.

So the question is if the dirty flag gets cleared before the collision object component reads it, and thus never updated the collision object shape?

Is this a reasonable analysis @JCash?

0 Likes

#7

It sounds very plausible, yes.

0 Likes

#8

Created https://github.com/defold/defold/issues/4829

2 Likes