Sign in to follow this  
Followers 0
Hashasm

placing the pin image on my building

2 posts in this topic

590ed71e5cfd3_nameonbuling.png.9bb3ea12370222e117fc78576e0ec241.png 

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

590ed82fc0ab8_imageonbuilding.png.5addd68f7bd6e9521c929c46806ffc0c.pnglike this

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.