February 26, 2017, 10:23:22 PM

Author Topic: Entity tree/group  (Read 906 times)

thecocce

  • Newbie
  • *
  • Posts: 1
    • View Profile
Entity tree/group
« on: November 21, 2015, 06:12:07 AM »
Hi, i am new on HaxePunk. I 'd like to know if is possibile to create a Entity group or a tree.

I need to add 3 object on a parent..and moving parent the all child are moved relative to parent.

Thanks in advance

ibilon

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 581
    • View Profile
    • My website
Re: Entity tree/group
« Reply #1 on: November 22, 2015, 10:55:45 AM »
It's not currently possible,

this is something that is planned for HaxePunk 3.

In the meantime you can pass the children through the constructor of the parent and override the getter and setter of x&y to move them.