How to Touch Player and launch it off the screen ?

venon_itvenon_it Member, PRO Posts: 594
edited November -1 in Working with GS (Mac)
I want to touch my player and launch it to the screen! how to?
or
( touch my player and throw it off the screen! how to? )

When touch is pressed ...???

helpp pleasee

Thankss

Comments

  • stanimationstanimation Member Posts: 406
    It could be as simple as when actor is touched, and acceleration or move attribute.
  • venon_itvenon_it Member, PRO Posts: 594
    but the launch will be in the direction of where you want to move ..
  • stanimationstanimation Member Posts: 406
    Ahh. Well then. Firemaplegames did a nice throwing/flicking demo. Check it out.

    http://gamesalad.com/game/play/30692

    Thanks Firemaplegames!!
  • venon_itvenon_it Member, PRO Posts: 594
    yesss, is this could be a good idea, but the commands work for the touch?
  • stanimationstanimation Member Posts: 406
    Easy to adapt and change.
  • firemaplegamesfiremaplegames Member Posts: 3,211
    yes, mouse down translates into touch for the iPhone. you don't even have to recode it.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    It works great! Thanks fm
  • venon_itvenon_it Member, PRO Posts: 594
    ok, i change with touch, and now is ok, but if i want : only one touch for object ( now can be taken several times ) and after touch it launch will be in the direction of where you want to move....if possible???

    thanksss
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    make a boolean attribute called touched. Then when the object is released just add a change attribute game.touched to true. And in the initial drag behavior and a rule that says when game.touched is false.
Sign In or Register to comment.