Jump to content

Group updates its bounds in a strange way after modification

Abderrahmane TJ

Recommended Posts



I have a group, to which I add a sprite upon Mouse Click on the game. In the callback attached to the event I want to get the group bounds. The problem is, the group does not update its bounds correctly. At the moment the click happens, the bounds get some strange values that do not match the real bounds I am looking for. It's only after a short while, do the bounds actually get the right values it should update to.


Here is a sample code in which this behavior occur. The console shows info about the Group before click, right after the click, and after a timeout :


Link to comment
Share on other sites

  • 2 weeks later...

  • Recently Browsing   0 members

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