Hashasm Posted May 7, 2017 Share Posted May 7, 2017 hi guys in abow image i am palcing the name of the building when i drag also it will come along with the building because i am drawing it on top of building by using me.font like this i wana add pin image to my building and it should stick to my building while dragging also ,i tried creating sprite image and adding it to world but it wont stick to my building can someone help me with this .. i am thinking to do as shown in the below image like this Quote Link to comment Share on other sites More sharing options...
Parasyte Posted May 9, 2017 Share Posted May 9, 2017 You can actually use a me.Container for the renderable instead of me.Sprite, then add the me.Sprite and the font object as children of the container. All children are positioned relative to the parent, so dragging the parent will do what you want without any extra work. 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.