If I constrain mouse position, would it also constrain touch position?

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

  • jsorr2jsorr2 Member Posts: 279

    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).

  • AleksandrGamesAleksandrGames Member Posts: 54

    Thanks!

  • SocksSocks London, UK.Member Posts: 12,822
    edited November 2014

    @jsorr2 said:

    @AleksandrGames said:

    "using mouse position is only for games on the computer (HTML 5)".

    This is not the case ! :) :o mouse position works just fine on an iDevice, it works exactly the same as touch.

Sign In or Register to comment.