Nesting actors

JerkTheRipper

  • Posts: 12
Hi, I'm looking for a way to pin objects together. I know I can set an actor to be an attribute of another, and then set the position of the actor attribute every update loop so the actors stay in the same relative position, but what about rotation? If I rotate the parent I'd want the attribute actor to update its position and rotation accordingly.

Does anyone know if there's already a way to nest one actor inside another using Stencyl? I'm hoping for something equivalent to the concept of sprites and movieclips in Flash  (AKA DisplayObjects), where you can use a parent display object as a container to manipulate a bunch of child objects. Or if anyone can suggest a way for me to roll my own solution that'd be appreciated too, thanks!

962750192

  • Posts: 44
maybe you can try "joint"in scene interface
我们聚集在这里,作成上帝的美意

JerkTheRipper

  • Posts: 12
Thanks for responding with a suggestion! I checked out joints, but I think what I will have to do is learn more about extending Stencyl through code to get what I want. I've written some pretty major Actionscript 3.0 stuff, so hopefully Haxe won't bring me down. ;) I was just hoping to avoid coding as long as possible, ha ha.