ios touch control

q8blogq8blog Member, PRO Posts: 10
edited March 2016 in Working with GS (Mac)

hi

i am new and trying to add touch control to the game salad , my objective is simply once he touch actor it will move whole he is touching it to the direction touch goes once he remove the touch it stop , just like touch function in iPhone , i tried it but there something wrong here .

postimg.org/image/m047ivxzv/

help would be appreciated .

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited March 2016

    Try this:

    When touch is pressed

    Constrain X to mouse position X
    Constrain Y to mouse position Y

    There is no need for the Move behaviour in the Otherwise section.

  • q8blogq8blog Member, PRO Posts: 10

    nice it work on the mouse , now if i am working on ios do i need to keep as is or there changes need to be made .

  • SocksSocks London, UK.Member Posts: 12,822

    @q8blog said:
    nice it work on the mouse , now if i am working on ios do i need to keep as is or there changes need to be made .

    No changes need to be made.

    On iOS > 'mouse' = 'touch'

  • ArmellineArmelline Member, PRO Posts: 5,332

    @Socks said:
    No changes need to be made.

    On iOS > 'mouse' = 'touch'

    There are bugs that affect mouse that do not affect touch, and vice versa. No idea if they got submitted and fixed, though. In other words, they are not completely synonymous, and that's even before considering the implications if you later decide to add a second touch to the mix.

    Go with touch is your target is a touch device.

  • q8blogq8blog Member, PRO Posts: 10

    thanks , i was able to make it work now it great .

Sign In or Register to comment.