Retri Posted March 12, 2016 Share Posted March 12, 2016 I have a sprite within another sprite. I need to be able to drag the inner sprite, but it's offset by it's parents attributes - is the only fix to offset it again by it's parents position, scale, etc? Or is there another clever way of doing it? Quote Link to comment Share on other sites More sharing options...
xerver Posted March 12, 2016 Share Posted March 12, 2016 If you don't want it to inherit the parent values, why make it a child? If you want to inherit parent values, but be able to drag it then on drag update the position with the delta of the drag rather than the absolute mouse position. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.