How to drag actor with finger in any direction?
Jaxter
Member, PRO Posts: 398
1. How to drag actor with finger in any direction on scene? And how to change picture when it is dragging for 45< degrees not yust y and x ? so i mean need 8 different images for each direction..
Comments
http://gamesalad.com/forums/topic.php?id=4148#post-24776
http://gamesalad.com/wiki/how_tos:gsc_mouse_movement?s[]=constrain&s[]=actor&s[]=touch
Or, you can move the actor on a grid as explained here:
http://gamesalad.com/forums/topic.php?id=1894#post-10370
As for changing the image, I would use Rotate to Position and rules that pair the actor's direction with the correct image rotation:
http://gamesalad.com/wiki/behaviors_reference:rotate_to_position?s[]=rotate
How do you make it so an actor is dragged by your finger, but it lags behind some and is not as sharp to follow, but if you hold your finger in one spot the actor will get to that spot like 1 sec later.
Hope this makes sense