Piano
![Yummy](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
i am trying to create a piano app with gamesalad, but seem to be stuck
i have set all the code to play sounds but when i click a black key it plays the white and black key
any help?
thanks much appreciated
i have set all the code to play sounds but when i click a black key it plays the white and black key
any help?
thanks much appreciated
Comments
you could also add to your white keys touch rule a condition that the y position of the touch is lower that the lowest point of you black keys before it registers as a white key touch.
That be an issue though if you are allowing more than one key to be pressed at a time you will have to setup a bunch of rules for each touch.
Those are just a couple ideas though there are several ways you could go about achieving what you want. the fun is finding a new way to do it.
___________________________________________________________________________________
Project Help from Tenrdrmer Click Here
GS BubbleBall Template HERE!!
Stacks Level Selection Template HERE!!
Expanding Option Menu Template HERE!!
Tenrdrmer's Menu # 3 HERE!!
AppSolute Entertainment on Facebook
AppSolute Entertainment on iTunes
The best way to do this is to use two actors because by doing so, you can create an L shape and that is all you need.
If you need additional info, feel fee to fire away :-)
Have fun ...
when that global attribute is changed = white colour key is animated
So you ahve a attribute called white1 (ill use that as exampole to reperesnt the first key)
have a rule when touch is pressed change white 1 to 1, otherwise change white 1 to 0.
You put that in both of the actors makin up the one key.
Then have another rule in both actors when attribute white1=1 play sound and change image to the key pressed image, then in the otherwise section change image to the image of the key up
cheers
Much appreciatedddd