Jump to content

[1.1.5] Replacing tiles does not update collision info


mandarin
 Share

Recommended Posts

I replace a tile with no collision with one that has, but the collision info stays the same.

 

You can reproduce this by using the paint tiles example. Apply collision to a couple of tiles by using setCollisionBetween() and enable debug on the tilemap layer. Paint with tiles that has collision and you'll see the debug lines never update.

 

You can try it yourself at http://mandarinx.github.io/experiments/phaser.painttiles.1.1.5.html. Shift + click the tiles within the green border, click to paint them anywhere.

 

There's also a test for 1.1.3 at http://mandarinx.github.io/experiments/phaser.painttiles.1.1.3.html. I couldn't find any debug drawing for tilemaps in 1.1.3 so I added the race car from another example. Use the arrows to drive around. You'll see the car stop at the tiles that has collision enabled. Painting new tiles and watch the car stop at them too.

 

How come this worked in 1.1.3 and not in 1.1.5? Am I doing something wrong?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...