where's the attribute for swipe?

developer6810developer6810 Member Posts: 139
edited July 2012 in Working with GS (Mac)
I can't find it. Is is supposed to be in devices or where is it?

Best Answer

Answers

  • developer6810developer6810 Member Posts: 139
    also, where's the attribute for shake?
  • developer6810developer6810 Member Posts: 139
    @shmuley95

    That tells you how to swipe in directions. How would that change if you wanted to make it so if you swipe an actor, it destroys?
  • developer6810developer6810 Member Posts: 139
    Anyone have any ideas?
  • developer6810developer6810 Member Posts: 139
    @uptimistik

    I tried that and it didn't work. That's pretty obvious. I was just wondering what exactly is the "swipe condition." I tried this but not sure if it was right:

    ____________________

    RULE: touch is pressed -- change attribute game.touchX to game.MousePositionX, change attribute game.touchY to game.MousePositionY

    RULE: touch is released -- change attribute game.releaseX to game.MousePositionX and change attribute game.releaseY to game.MousePositionY and destroy actor

    ____________________

    Sorry if I confused in the question. I obviously know how to do that. I was just a little confused on the swipe condition part. Sorry @uptimistik

    :)
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    if you are swiping then you need to use touch is inside otherwise you have to physically press on the actor for the rule to trigger.
  • developer6810developer6810 Member Posts: 139
    @uptimistik

    Wow. Sorry. Completely forgot about that thread.
  • developer6810developer6810 Member Posts: 139
    Thanks
    @tenrdrmer
  • developer6810developer6810 Member Posts: 139
    @uptimistik
    @tenrdrmer

    Sorry for all the confusion guys. I got it, I was just missing one step. Thanks for your help.
Sign In or Register to comment.