Topic was automatically imported from the old Question2Answer platform.
Asked By
OoftyGoofty
Hi
I have a KinematicBody2D player node in which I want to check ‘if the player is not colliding with anything, run code’ but I can’t figure out how. I am new to Godot so detailed explanations will really help me out. Thanks in advance
which will automatically run each frame so you will always be checking. This will take up processing time each frame though so I dont know if this will slow down the game at all.
Sorry I should also have mentioned this will only work in a script on a node with the is_colliding(): function built in so for instance have raycasts in your player scene which can detect contact.