#How to make a ground pound that can destroy tiles on the tilemap?
9 messages · Page 1 of 1 (latest)
game files
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
👤 Reply From: clemens.tolboom You can use TileMap.world_to_map for your mouse click get_global_mouse_position() to get to the cell value using TileMap.get_cellv() var tilemap = $TileMap var mouse :Vector2 = get_global_mouse_position() var cell :Vector2 = tilemap.world_to_map(mouse) var abc :int = tilemap.get_cellv(cell) var new_abc :int = (...
thanks! it helped :3
How to make a ground pound that can destroy tiles on the tilemap? [SOLVED]
also how do I make the player bounce back up after hitting the blocks?
How to make a ground pound that can destroy tiles on the tilemap?
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.\