#How to make a ground pound that can destroy tiles on the tilemap?

9 messages · Page 1 of 1 (latest)

delicate oyster
#

I have a 2d player which has the ability to ground pound when you press spacebar in the air. I want to make a tile using the tilemap which can be destroyed if the player is ground pounding. how do i detect if the player and tile collided and how do I remove said tile?

delicate oyster
charred sorrel
#

Not at my computer right now so I can't look at your code, but you could take a look at custom tile data?

This forum post could also be relevant:
https://forum.godotengine.org/t/how-to-change-tiles-in-tilemap-with-codes/9096/2

delicate oyster
#

thanks! it helped :3

#

How to make a ground pound that can destroy tiles on the tilemap? [SOLVED]

delicate oyster
#

How to make a ground pound that can destroy tiles on the tilemap?

charred sorrel
#

A quick solution could be to have the destroyed tile send out a signal (before actually being destroyed) that causes the Player to "jump" upon receiving it.\