Swipe gesture

TackyAttackTackyAttack Member Posts: 141
edited November -1 in Working with GS (Mac)
Is there anyway to make a Swipe Gesture in gamesalad, like in the photo app on the iphone?

Comments

  • design219design219 Member Posts: 2,273
    Interesting, I'll have to dig into this.

    I'm working on something that I need to know constant swiping motion, specifically a tickle. I want a rule that keeps some behaviors going while the finger is in motion over the actor.
  • TackyAttackTackyAttack Member Posts: 141
    What about adding a snap to position?
  • TackyAttackTackyAttack Member Posts: 141
    Any suggetions on using FMG's snapping tutorial?
  • shuklzshuklz Member Posts: 5
    Just stuck on rule IF? Where & How I write if rule in gameSalad? Thanks a lot!

    rule
    if game.releasex is greater then game.touchx
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Rule

    it's in the behaviors list (alphabetical order) and it's towards the top right after you double click on an actor.
  • shuklzshuklz Member Posts: 5
    Thanks
  • synthesissynthesis Member Posts: 1,693
    Aye--yie-yie...
    What is a Rule? Are you kidding me?

    Doesn't anyone read anything in the support section before posting on the forum anymore?
  • synthesissynthesis Member Posts: 1,693
    I'm not scolding...the point is...there is so much information available here on the site...they really should look around. (plus I haven't slept in 30 hours...(I'm a little punchy at the moment)...so that might be part of the problem :)

    Good night...I'm gonna go sleep now!
  • OrchestralMonkeyOrchestralMonkey Member Posts: 33
    tshirtbooth,

    Can you explain a little more about this:

    "now depending on what your doing

    rule
    if game.releasex is greater then game.touchx
    then do ?????

    rule
    if game.releasex is less then game.touchx
    then do ?????"

    I'm a little confused on what I should be replacing the question marks with.

    Thanks.

    --Lee
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    replace the question marks with rules and behaviors that will make things do things.

    Example (tickle).

    Create a boolean game attribute called tickled.

    For the question marks have a behavior that says change game.tickled to 1 (true)

    Then in the thing being tickled have a rule that says:

    rule - when game.tickled is true
    -----animate (put laughing animation sequence images in here)
    -----play sound (laugh.ogg or giggle.ogg etc)
  • DevilsDevils Member Posts: 561
    I was going to post a similar thread last night as well but never got around to it. Can we also use this method you mention tsb to do something similar to the level select screen on Angry Birds and Cut the Rope? I'm not trying to take over the thread or anything just thought I asked here since there was one already made.
  • OrchestralMonkeyOrchestralMonkey Member Posts: 33
    Does this work in preview mode or is this something that has to be run on the device itself?
  • ORBZORBZ Member Posts: 1,304
    Gendai, if you are listening, this would be another example of a high-level behavior you guys should implement OR let us make our own behaviors.
  • DevilsDevils Member Posts: 561
    I think that Gendai should implement these and more behaviors like ORBZ said. I personally would like some type of movie matnee type behavior where I can place actors and then pose them in sequential orders to make like a movie. Might not have said it right but I know what I'm talking about lol.
  • MotherHooseMotherHoose Member Posts: 2,456
    @shuklz & @synthesis re: Rule behavior

    that was the most confusing thing (along with attribute=variable in the Game Section)

    how are you supposed to know [Rule] = "if statement" as it says "When" not "If" and while I have used "while" had never used "When" before...sometimes reading all the documentation before getting your feet wet is more confusing than reading none...after you get a quick look/see you can develop questions and search for answers.

    @synthesis...this isn't a swipe at you...hope you had sweet dreams!

    MH
Sign In or Register to comment.