Possible to do this?

wolala123wolala123 Member Posts: 249
edited August 2013 in Working with GS (Mac)
I have three red ball in level 1.I need these 3 red ball swipe independently.So, how to do it?thx

Comments

  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    yes its possible.
  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    ... what rules have you got setup for swiping at the moment?

  • wolala123wolala123 Member Posts: 249
    @StormyStudio
    attributes
    game.touchx
    game.releasex

    when touch is pressed
    change attribute
    game.touchx to game.mouse.position.x
    game.releasex to game.mouse.position.x

    when touch is released
    change game.releasex to to game.mouse.position.x

    rule
    if game.releasex is greater then game.touchx
    right 75 pixels

    rule
    if game.releasex is less then game.touchx
    left 75 pixels
  • wolala123wolala123 Member Posts: 249
    @StormyStudio so what next to do?
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Having things swipe independently would need a multi touch algorithm. Not sure what exactly you're specifically trying to accomplish. Could you explain the process you're trying to create.
  • wolala123wolala123 Member Posts: 249
    edited August 2013
    @FryingBaconStudios Above code is only for one actor. Cause i dun know to do swipe independently. Now i ask how to create swipe independently.
  • natzuurnatzuur Member Posts: 304
    Elaborate a bit more, do you need it so all swipe independently and can be manipulated simultaneously (multi-touch)? Or just one at a time but operate separately? What's the main purpose of the system?
  • wolala123wolala123 Member Posts: 249
    @natzuur 1st one ...swipe independently. for example same blue ball which can swipe in the one level. I want swipe first blue ball, but at the same time the second and third ball remains stationary.
Sign In or Register to comment.