Jump to content

Sprite within container and interactivity?


Recommended Posts

Hi @enpu

I'm still working on my settings menu and I have a question about the 'interactive' property.

If I have an overlay sprite that is interactive(solid color box), it basically acts as a barrier, so the items underneath can't be clicked. If I make this sprite invisible, then the sprites underneath become clickable again.

If I however put interactive sprites(buttons) inside the parent sprite, and then turn it invisible, the child sprites still remain interactive, even tho they are invisible along with the parent.

Is this by design? I feel like it would be better to disable interactivity on all sprites the parent holds, if it's made invisible.

Just asking, so I can design around if necessary :)

Thank you! 

Link to comment
Share on other sites


I had to take a closer look on the engine code, and yes currently it seems to be by design, visible property doesn't affect interactivity of it's childrens.

I have to see if i should do some redesigning there.

Could you instead of using the visible property, use addTo and remove on the overlay sprite? That's should also disable all interactivity.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...