Could you better explain what is happening right now and what you would like to happen? If you could tell us what behaviours/events are you using, it would be a lot easier to give advise on what to change..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
captaincatnip wrote:One way to do this is to clamp the X, Y values to the screen edges after moving it to the spot above the character. So if X + arrowWidth > screenWidth, x = screenWidth - arrowWidth, etc.