Need help for a piano app...overlapping problems
akimann
Member Posts: 62
I´m writing a piano app. The problem is, that the white an black keys are overlapping. So when I press the black key, e.g. "cis", the white key "c" will also be activated. Of course I tried attributes like "black_key_down=true" so that the white should not be pressed down when I hit the black ones. But this will only work when I hit the black key the second time. On the first touch the white key is also active, because only AFTER the first touch on the black key the attribute is activated. It´s frustrating! Isn´t there a possibility to block the overlapping area?
Comments
(by calling the c-sharp "cis", I can tell you are Eurpean)
The solution is a very simple one and just a little while ago, i was puzzled by it too.
In Flash, you draw a shape and that shape is your hot spot clickable area but with gamesalad it's done this way:
To map out an L shape, simple use two actors!
This means that for every white key, you will need two actors (one in between the black key(s) and one for the normal lower part of the key
Good luck!
Here is what i just uploaded the other day: http://ernstrenner.com/forum/viewtopic.php?id=44
This solution is so perfekt! Thank you a lot!
Greatings from Germany!
Toastkitten was kind enough to make me a demo
http://gamesalad.com/game/3404
here it is
TK made it a while back for me