Godot Version
4.3
Question
i connected a area2d node to my script (body_entered function) , it seems like it is 2 frames late, is it a mistake from my end or it is like this in the engine and if it is like this ,how to fix this?
4.3
i connected a area2d node to my script (body_entered function) , it seems like it is 2 frames late, is it a mistake from my end or it is like this in the engine and if it is like this ,how to fix this?
There could be a one frame lag due to the way Godot and other engines go through a processing order. If that single frame is important to you, you may want to approach this in a different way.
Here is a previous post about the topic:
And there are others too. I hope this helps.