How to postion sprite on image point

0 favourites
  • 7 posts
From the Asset Store
Connect the dots in the correct order and draw happy animals!
  • hello <img src="smileys/smiley2.gif" border="0" align="middle" />

    i want to postion a sprite on onther object image point.

    <img src="http://oi40.tinypic.com/505rua.jpg" border="0" />

    For exmple i want to postion image point11 on image point 1

  • sprite set x - object.imagepointx(11)

    sprite set y - object.imagepointy(11)

  • LittleStain

    sprite set x - object.imagepointx(11)

    sprite set y - object.imagepointy(11)

    thank you LittleStain for your reply <img src="smileys/smiley1.gif" border="0" align="middle" />

    it does not solve my problem i wonder if you did see the picture or not

    let me explain more.

    i have

    Sprite1 with " origin,image point1"

    Sprite2 with " origin,image point11"

    i want to place Sprite2 from "image point 11" on "image point1" of Sprite1.

    Your solution result like this: Sprite2   "image point 11" on "origin" of Sprite1.       

    sorry but i can not post image to explain more

  • first set sprite2 to imagepoint 1, than calculate the x and y distance from sprite2 imagepoint 11 to sprite1 origin and offset sprite2 by that distance.

  • added picture <img src="smileys/smiley36.gif" border="0" align="middle" />

  • Like I said, you will have to do it in two steps.

    First set sprite 2 to the imagepoint you want, calculate the x and y distance from the sprite2 imagepoint to the sprite2 origin (or the intended imagepoint to set position to) and adjust it's position accordingly.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • LittleStain

    thank you again <img src="smileys/smiley20.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)