Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | shoyguer |
How can I get the tile name when colliding with it?
This is the name of my tile:
This is the code which is inside a KinematicBody2D:
func _on_Collision_interacitons_body_entered(body):
var type = body.tile_get_name()
print(type)
But when I try to run the game I get the following error: