Is a future version going to support touches and swipes on the iPhone?

KamazarKamazar Member Posts: 287
I'm checking out the program, prepping everything to start my game, but I don't see anything for touches or swipes. When the iPhone preview app comes out, will they add more functionality? I'm kinda limited with just the accelerometer :/

Comments

  • KamazarKamazar Member Posts: 287
    And just seconds later I read the post about the first GameSalad iPhone game that'll be released. *facepalms*
  • FreztinoFreztino Member Posts: 30
    The mouse button is the same as a touch =)
  • KamazarKamazar Member Posts: 287
    Oh, true? Thx a load!
  • quantumsheepquantumsheep Member Posts: 8,188
    True, true, but I don't think swipes are supported are they?

    If they are, someone yell how we do them! If not, then can I please formerly request this as a feature. I have some crazy ideas that would require a swipe behaviour, and I'm sure others wouldn't mind having it in as a rule, say.

    Cheers,

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Well, if you break down what a swipe is, it is just a touch on the screen and dragging your finger to another point and no longer touch the screen anymore.

    Or in GameSalad terms,

    If Mouse Button -> Down
    - Change Attribute. StartingX = Mouse.Position.X
    - Change Attribute. StartingY = Mouse.Position.Y
    - If Mouse.Position.X not equal to StartingX or If Mouse.Position.Y not equal to StartingY
    -- Change Attribute. CouldBeSwiping = True

    If Mouse Button -> Up
    - Change Attribute. CouldBeSwiping = False

    If CouldBeSwiping == true
    - Control Camera
    - Constrain self.Position.X = Mouse.Position.X
    - Constrain self.Position.Y = Mouse.Position.Y

    Or something like that. That should get you a head start on perfecting it.
  • quantumsheepquantumsheep Member Posts: 8,188
    Cheers Codemonkey - helpful as ever!

    /hands Codemonkey a banana

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

Sign In or Register to comment.