I’ve got a ton of buttons in the main game module with touch events attached.
When I return to the main menu, instead of unloading the module I’m removing the core ‘enterFrame’ event that the main game loop uses, and shifting the game display group offscreen (x = -10000000) and setting its .isVisible property to false.
Since my game has a lot of buttons (for inventories and such, say around 20 or so), is it worthwhile me also manually cancelling their ‘touch’ events, or is the overhead so minimal that really I shouldn’t worry about it?
Really its just to know if its worth it for optimisation purposes.
Barry [import]uid: 46639 topic_id: 9342 reply_id: 309342[/import]