At the moment I’m able to allow the user to select objects with their finger, the problem is that sometimes it can be hard to see the object while the player moves their finger.
Is there a simple way in Java script I could offset the object, so if the players finger moves up the object gets offset up a little and if they move to the right the object gets offset to the right a little and so on…
You have to update the transform of the object to the position of the finger + whatever direction, and amount you want to offset.
var offsetLeft : Vector2;
var offsetRight : Vector2;
var offsetTop : Vector2;
var offsetBottom : Vector2;
//You can just use one offset variable and change it, i’m only using 4 because im not sure how your game is setup, and it keeps the offset values seperate and will help illustrate the idea better