Executing HasEnteredCollision2D indefinitely

Bosha52

New member
Hello, when trying to check if an object has Entered collision 2d for the second time, the command won't return true and therefore the behavior is stuck in idle. How could I prevent this so that I could check for collision indefinitely?
In my tree, after the jump task has been executed, the shared bool becomes false therefore the selector that contains the has entered collision 2d should be runned but it returns false due to the collision already having been checked
1661883179005.png
 
This will take a custom task - the trigger task will only return true the first frame. You could modify that task to persist the state.
 
Top