I use a system for scrolling where I actually move OpenGL's Camera, which is really convenient for everything except stuff on my GUI. I just put in a pause menu, but I'm having trouble. When I move the pause menu to keep up with the camera so if I need it, it's available, it moves to line up with the camera, but using setPosition on a menu it takes literally, and recalculates the areas that are touchable for each menuItem, so as I move to the right, the touchable areas on the menus move even further off to the right. I haven't been able to find a full Cocos2d API like used to be hosted by SapusMedia, so I was wondering if there was simple solution to only moving the visual elements of a menu, and not recalculating the touch spots?
Moving Menus without moving their active area
(3 posts) (2 voices)-
Posted 2 years ago #
-
Maybe reset the OpenGL camera before drawing the menus?
Posted 2 years ago # -
Not a bad plan. How would I accomplish that though?
Posted 2 years ago #
Reply
You must log in to post.