PDA

View Full Version : Operations on multiple overlapping layers not working



droidgamer
04-19-2011, 06:19 AM
Sir, I am developing a game like Farmville( By Zynga on Facebook) on the Android Platform .I am using Eclipse 3.6 and Android SDK 2.2 . Now my problem is in my gameplay. Their is a Farm Management Button on the bottom-right portion of the game screen but if some actions are performed on the gameplay background (Farm),it will not work because the button and gameplay background are kept on seperate layers. In this case the layer on which button is placed is kept over the layer on which farm is placed. So the topmost layer is the layer on which button is placed. As a result of this only this top most layer is functional, i.e., button works but the operations on the farm ( farm is placed on the layer below) cannot be done.I tried switching the layers, i.e. layer on which farm is placed comes on top and the layer on which button is placed comes to the bottom. In this case, the gameplay background (farm) operations work, but button will not show. Please help me to solve this issue so that I can make both the layers
functional. Expecting a reply at the earliest