Ninjadoodle Posted February 2, 2018 Share Posted February 2, 2018 Ho @enpu I seem to be having trouble with having a container (with containers) within another container - is this a limit or am I doing something wrong? Thank in advance Quote Link to comment Share on other sites More sharing options...
enpu Posted February 2, 2018 Share Posted February 2, 2018 No there should be no limit on that. What is exactly the trouble? Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted February 2, 2018 Author Share Posted February 2, 2018 Hi @enpu Sorry, I managed to get this working - I think I my logic was wrong. I am having trouble with the alpha thing again tho (with 0 not being interactive) - I think you've updated that once Quote Link to comment Share on other sites More sharing options...
enpu Posted February 2, 2018 Share Posted February 2, 2018 Can you tell a bit more, or show some code..? Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted February 2, 2018 Author Share Posted February 2, 2018 if I set the alpha to anything above 0, the sprite will receive clicks, but at 0 it won't. I remember you've made a change to the dev branch recently where you enabled alpha 0 to be interactive, and only visible = false to not be. game.createClass('S04Hitmap', { init: function(x, y) { this.sprite = new game.Sprite('s04Hitmap.png'); this.sprite.position.set(x, y); this.sprite.anchorCenter(); this.sprite.alpha = 0.00001; this.sprite.interactive = true; this.sprite.addTo(game.scene.mg); Quote Link to comment Share on other sites More sharing options...
enpu Posted February 2, 2018 Share Posted February 2, 2018 Can you update to latest dev version and try again Ninjadoodle 1 Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted February 2, 2018 Author Share Posted February 2, 2018 Nice, thanks! Work well now Quote Link to comment Share on other sites More sharing options...
enpu Posted February 2, 2018 Share Posted February 2, 2018 Great! Quote Link to comment Share on other sites More sharing options...
mattstyles Posted February 2, 2018 Share Posted February 2, 2018 How many containers can a container contain if a container can contain containers? Ninjadoodle and enpu 1 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.