Clamping the player within the screen limits

How about using StaticBody2D with WorldBoundaryShape2D? isn’t this the purpose of this collision shape? and also, no code is needed with this approach… any drawbacks?

Looks like that’s valid; because the enemies are Area2Ds, they shouldn’t be affected by this. If it works, it works! =)

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms