GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

ios touch control

q8blogq8blog Posts: 10Member, PRO
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.Posts: 12,822Member
    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 Posts: 10Member, PRO

    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.Posts: 12,822Member

    @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 Posts: 4,723Member, PRO

    @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 Posts: 10Member, PRO

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

Sign In or Register to comment.