Jump to content

placing the pin image on my building


Hashasm
 Share

Recommended Posts

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

Link to comment
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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...