![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Arielrandal |
Hello, im new to coding and just started with godot, ive been following some tutorials and i made a tilemap with a static body and collision shape, a sprite that can move around and shoot a bullet that is a rigid body with a sprite and a collision shape (all in 2d) and i want to make the bullet dissapear or delete itself when colliding with the tilemap, i tryed using:
extends RigidBody2D
func _on_RigidBody2D_body_entered(body):
self.queue_free()
But it doesnt works, thanks for any help.