Hey, guys and gals.
Alright, here's my custom touch control boundaries solution.
By that I mean player ship movement using left mouse click, so the player ship does not go off screen.
I did not use the built in behaviors (Bound by Edge or Layout) because I wanted to be able to set the exact pixels (it's important for later).
If you'll notice, it works pretty well in the beginning, but then seems to hang up (or the ship seems to stop for no reason, especially near right boundary, sometimes left, and then resume, but only if you click several more times).
It does not seem very elegant and would probably come off as buggy to a player.
What do you think?
Did I do this right?
Is there a better or fancier way to do this that's more full proof?
Here's the capx.
Custom Touch Control Boundaries