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.
I'd definitely be interested in using this!
Develop games in your browser. Powerful, performant & highly capable.
Hello! I'm a relatively experienced developer but have no Construct 2 or JavaScript game making experience. I'm excited to check it out and see what creations I can make!
Member since 2 Aug, 2015