How to set collision of specific tile with blueprint?

In 2D Game, I want to place a button and when i active it, i want a specific tile’s collision is disabled. But i cant see any collision settings for it, or i cant see tile settings with blueprint too. Is not it possible? I dont want to do it with Actor&Meshes because there will be a lot of blocks to set the collision enabled. I dont want to fill the map with actors.

If you are just going to use static meshes, then you can say

image

Problem is that this is not mesh, it is tile. Tile of a tile map. It is a 2D Game.


I can set collision of layer true or false in editor but cant set it by blueprint. Also there is a node named Set Layer Collision but it didnt work for me.

So it’s a texture? On a plane, or a sprite, or?..

Anything like this?

Firstly, thanks for your concern

But i want to change the collision in game. For example there are 20 blocks with collision(each one is 1 tile). When i pressed the button they should disable their collisions. We can change collision of meshes in game, i want to do same thing with tiles.

I’m sorry, at the moment I don’t know. I’m missing crucial info. What is each of these building elements? It’s not a mesh. Is it a sprite, or?

When you are making a tilemap, you click and paint each tiles(as example 200x100 tiles map). You can add collisions to these tiles, but you cannot remove or add collision in game. These are not sprite, directly tile :smiley: There is a node named Get Tile which gives you the tile where is specific coordinates.

I guess it is impossible. I chose placing actors.

I’ve read some articles on this, the tile setup does look pretty basic, but I have a solution, maybe!

Just make two tiles that look the same, one has collision, the other doesn’t. When you want to get rid of collision, you can replace one tile with the other.

I’m assuming the system does that!?

Yes! It came to my mind too. Anyone who have this problem can use that, but due to the nature of my game i cant use that. It makes that so complicated. Thanks for helps :slight_smile:

1 Like