I have 2 layers. In first layer, i have a menu. If i select that menu I want layer2 to display in the small rectangular region of layer1. How to reduce the size of layer2. If layer2 is visible, i dont want to enable touch in the game portion of layer1. in layer2 i have 3 different sprites menu. on clicking one of them will lead to layer1. Plz give me an idea of reducing the layer size and how to fit it in another layer
How to add one layer above a layer
(2 posts) (2 voices)-
Posted 1 year ago #
-
What you could do is to disable touches in layer 1 when layer 2 pops up by calling layer1.isTouchEnable = NO;
Notice this won't disable menu items in layer1. You must also call menuitem.isEnabled=NO; for each menu item.Posted 1 year ago #
Reply
You must log in to post.