If I constrain mouse position, would it also constrain touch position?
AleksandrGames
Member Posts: 54
So I am making a simple iPhone game. In the game scene, there is an actor that I want to follow my touch exactly. If I used 'constrain self position (x and y) to mouse position (x and y)', would it constrain the actor's position to my touch on an iPhone?
Thanks
Comments
Hey AleksandrGames,
Constraining self position x/y to: Game - Touches - Touch 1 - x/y
this will do touch for both the mouse AND your iphone. using mouse position is only for games on the computer (HTML 5).
Thanks!
"using mouse position is only for games on the computer (HTML 5)".
This is not the case ! mouse position works just fine on an iDevice, it works exactly the same as touch.