tidelake Posted May 1, 2016 Share Posted May 1, 2016 I need the child sprites not to rotate/pivot with the cue.body, while I need the cue.body to rotate. How can I do this? wave_left = cue.addChild(game.make.sprite(-ball_radius, 0, 'wave')) wave_left.angle = 270; wave_left.anchor.setTo(0.5, -2); quiphop 1 Link to comment Share on other sites More sharing options...
JakeCake Posted May 2, 2016 Share Posted May 2, 2016 I don't think it's directly possible, as the parent sprite works as a display group and applies it's transformation on all it's children. You could however negate the effect by either: Not adding it as a child, but instead set the x/y of the child to the same as wave_left each frame and then have them in the same display group. Negate the rotation by setting the childs rotation to the negative of the parent and then displace with a vector from child to parent, but the first solution seems easier Wait for a better answer, there might be a built in way of doing this. Link to comment Share on other sites More sharing options...
Recommended Posts