Jump to content

Polygon's position is different from the sprite


shabeerahmedshah
 Share

Recommended Posts

AFAIK, 2 things could happen. Can you share the code where you create the sprite and load the polygon? I mean, with all the modifications that you make to it (scaling, or whatever).

This happened to me but in the x coordinate. The problem was that the polygon loaded with loadPolygon was centered on the sprite when it was loaded, and the sprite size was bigger than the image it had inside, so all that I had to do was to fit the sprite to the things I was drawing inside (Was a BitmapData where I draw things on).

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...