Hi! I tried visual scripting because i though that would be a faster alternative but things got complicated I want to queue_free() everytime the holder of the script touch an object with "Wall" group

I have attached an image of my .vs script so, what are you suggesting me to do?

If i understand your script correctly, you basically never queue_free() your body. The reason is that is_in_group() shouldnt return true, as your body (i guess) is not part of the wall gorup.

i think the right approach would be to call get_colliding_bodies ( ) and then loop through them. In the loop you would check if it is in the wall group and then call queue_free() on your body.

3 years later