drag left and drag right

gamedivisiongamedivision Member Posts: 807
edited November -1 in Working with GS (Mac)
how do i prove that im dragging an object left and right

Comments

  • StuartYStuartY Member Posts: 134
    Could you clarify?
  • steve86steve86 Member Posts: 806
    maybe this will help, Dunno if this is what you mean thou.

  • gamedivisiongamedivision Member Posts: 807
    so to clarify
    i have a volume button,in the shape of an egg,the egg is in a nest on a tree i want to be able to drag that egg with my finger left and right along the nest to raise or lower the volume so i would need the game to recognise that i am moving left or right so i can have the egg rotating left and right on movement
    thanks very much for replies so far
    i wonder if i could use some of that swipe and add the drag instead of swipe
  • gamedivisiongamedivision Member Posts: 807
    ahh bugger it wouldnt work cause it relies on release to determine which way whereas i would need it to rotate as soon as you move your finger then when you have your required volume release
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    use this:

    http://gamesalad.com/game/1758

    search the title of the demo in the new section of gamesalad to open. Then based on weather you moving left and right, youll have rotate behaviors clockwise and countercloskwise for the egg
  • ValanValan Member, BASIC Posts: 410
    You make the volume(v) = egg (X pixel) position.

    Then set a Timer to Change Attribute for the volume as the egg is moved.
    If the egg starts at X=53 then 53 is your 0 percent and if it ends at x=375 then this is your 100 percent.

    So at each point you need to calculate the percentage.

    Hope this is a help

    Cheers

    Valan
  • StuartYStuartY Member Posts: 134
    All this is very useful. Also have a search under "pause menu" in gamesalad. There's a volume slider template in there that sounds like what you're after.
Sign In or Register to comment.