Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Destroyable tile(layer) and destroyable block?
#5
Could just create a new tile type, in the datas, store the hp for the tile, as well as if it's blocked or not. In the canmove subs check the data that holds if it is blocked or not. If it's set to not be blocked, then allow the player to walk through it.

As for it disappearing and crap, use the temp tile stuff like the doors use. Then allow it to respawn after a set period of time.

When you're attacking, check to see if you're attacking the tile type and if so, subtract the damage from the hp of the tile. Once it hits 0, set the blocked to false and remove the tile.

Pretty simple.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)