In a top-down view
I have a object with 8 directional movement that I am using as aim, so the player will always look for where this sprite is (this is for aiming with the gamepad only).
The player has ScrollTo behavior, and is always in the center of the view. I would prevent the aim sprite to exit the viewport.
Using the window width and height or the player location doesn't seens to fit, and I don't find anything about it, there's a way of doing it?