Remove Tile

Get help using Construct 2

Post » Sun Oct 14, 2012 12:27 pm

Hi,

I'm new to construct2 and I wonder how I can remove a tile the player has passed.

To get it clearer. I have a top down game where the player can move on a platform. There are a few tiles on this Platform that will break once the player has moved over them. So I need to set a special status of the tile (Instance vars?) if its breakeable or not and need to find out on which tile the player has moved (the tile should break AFTER the player has moved over it. So I need to play the "break" animation and after that I need to destroy it. How can I do that?!

Best,

Benny
B
6
S
1
Posts: 19
Reputation: 888

Post » Sun Oct 14, 2012 12:34 pm

Yes, instance variables.
When the player has a collision with the tile, have the tile change a variable so the you know it had a collision.
You would then compare that variable as a Boolean, and if the check that it had a collision was true, and the player is not overlapping it, do your actions to remove the tile.
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Mon Oct 15, 2012 10:32 pm

Thanks a lot, this works like a charm! :-)
B
6
S
1
Posts: 19
Reputation: 888


Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt, farfetchd83, mjj1990 and 4 guests