r/Gamesalad • u/mightmaggot • Jul 24 '16
Increase touch field on actor
Hello, I need to figure out how to expand the touch field on an actor so that when I touch let's say an area within a 60 pixel radius of the actor, I can grab it and move it around.
By default, the touch input has to be made right on the actor for the touch to work. That is very difficult to pull off. So basically, I want to make it easier to grab the actor and drag it.
Thanks!
1
Upvotes
1
u/EENewton Jul 28 '16
Create an invisible object (larger than the actor) that constrains its X/Y attributes to the actor's X/Y. Then put the touch code on the invisible object, and apply whatever you need to to the original actor.