Remove Tile

0 favourites
  • 3 posts
From the Asset Store
Each tile 64 by 64 pixels - Ultimate Tile Set for your awesome games
  • 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

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks a lot, this works like a charm! :-)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)