How to drag in gamesalad?

gteteris001gteteris001 Member Posts: 51
edited December 2011 in Working with GS (Mac)
Hello, does anyone know how to make a dragging rule in gamesalad?
Thanks

Comments

  • CloudsClouds Member Posts: 1,599
    edited December 2011
    Simply tell the actor you want to drag around that whenever it is touched it's position should be the same as the position of the mouse.

    So the rules would be saying that:
    Whenever the actor is touched . . . . .
    Constrain Attribute - Actor's position X to Mouse's position X
    Constrain Attribute - Actor's position Y to Mouse's position Y

    Like this:

    http://img842.imageshack.us/img842/9877/screenshot20111211at142.png
  • ChobbifaceChobbiface PRO Posts: 491
    edited December 2011
    Hiya. You need some constrain behaviours.

    Do when touch is pressed, constrain actor position X to mouse position X
    AND constrain actor position Y to mouse position Y

    Edit: Tynan, beat me to it by 10ms.
  • gteteris001gteteris001 Member Posts: 51
    Thanks Tynan and CBL. Now I can start my project!!
Sign In or Register to comment.