Tap and Drag

disparitiondisparition Member Posts: 32
edited March 2012 in Working with GS (Mac)
Hi, i am new at gamesalad so i dont know how to use the codes properly and i would like to know if it is possible to hold an actor and move it around and release it, but then algo that if you just tap (with a single tap) that actor it will not drag and it will spawn a new actor. any help is appreciate

Comments

  • youngster9youngster9 Member Posts: 326
    For the tap and drag you can create a rule and set the if statement to if the actor is touched then in the rule use a constrain attribute behavior and constrain the x and y coordinates of the actor to the x and y coordinates of the touch. Then for the tap on actor once and spawn a new one just use the tap count attribute and if it is equal to 1 or how many taps you want use the spawn behavior. Also for this I would not recommend having it being a one tap for the spawn because first it will probably not work and also it may be confusing for the player maybe change it to a double tap or triple tap, it will work better and easier for player. If you have not idea about some of the things I said then you need to watch the:

    Cookbook videos at
    http://www.youtube.com/user/GameSaladCookbook

    Also check out
    http://www.gshelper.com

    If you learn everything from these videos will have a solid base to Gamesalad and using problem solving skills will be able to do almost anything.
Sign In or Register to comment.