How do I make coherent structures?

Get help using Construct 2

Post » Tue Mar 22, 2016 9:29 pm

@R0J0hound the problem with this one is that its one object. So if i try to destroy one bloc, the whole thing disappears
B
25
S
6
G
4
Posts: 173
Reputation: 3,928

Post » Tue Mar 22, 2016 9:40 pm

You don't destroy it, you use the tilemap's erase tile action to remove individual tiles. Another good reason to use the tilemap object instead of individual sprites for the tiles is it runs a lot faster.
B
91
S
31
G
102
Posts: 5,232
Reputation: 67,250

Post » Tue Mar 22, 2016 9:41 pm

R0J0hound wrote:You don't destroy it, you use the tilemap's erase tile action to remove individual tiles. Another good reason to use the tilemap object instead of individual sprites for the tiles is it runs a lot faster.

How do i do this i've never used tile maps before
B
25
S
6
G
4
Posts: 173
Reputation: 3,928

Post » Tue Mar 22, 2016 9:41 pm

@R0j0hound
B
25
S
6
G
4
Posts: 173
Reputation: 3,928

Post » Tue Mar 22, 2016 9:46 pm

Also how do I drag one tile using the drag and drop behavior
B
25
S
6
G
4
Posts: 173
Reputation: 3,928

Post » Tue Mar 22, 2016 9:53 pm

anyone???
B
25
S
6
G
4
Posts: 173
Reputation: 3,928

Post » Tue Mar 22, 2016 10:03 pm

You can do it with the "erase tile" action. You specify the tile to erase by it's column and row on the tilemap. If you want to delete at tile at an x and y position, the tilemap object has expressions to convert from an x, y to column and row.

To drag and drop I think you'll have to create a sprite at the tile you clicked on, erase the tile, then drag the sprite around. When you drop, you'd set the tile the sprite was over, then destroy the sprite. I don't have time currently, but it's an idea you could play around with.
B
91
S
31
G
102
Posts: 5,232
Reputation: 67,250

Post » Tue Mar 22, 2016 10:27 pm

@R0J0hound omi lord somebody help its not working. How would I phrase that event
B
25
S
6
G
4
Posts: 173
Reputation: 3,928

Previous

Return to How do I....?

Who is online

Users browsing this forum: ksiads and 1 guest