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
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
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
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.
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.
Comments
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
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
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