How to postion sprite on image point

Get help using Construct 2

» Fri Nov 15, 2013 2:10 pm

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

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

tnindie2013-11-19 10:15:00
B
7
S
2
Posts: 44
Reputation: 668

» Fri Nov 15, 2013 7:16 pm

sprite set x - object.imagepointx(11)
sprite set y - object.imagepointy(11)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

» Fri Nov 15, 2013 7:39 pm

@LittleStain[QUOTE=LittleStain] sprite set x - object.imagepointx(11)
sprite set y - object.imagepointy(11)[/QUOTE]
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 tnindie2013-11-15 19:40:24
B
7
S
2
Posts: 44
Reputation: 668

» Fri Nov 15, 2013 8:15 pm

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.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

B
7
S
2
Posts: 44
Reputation: 668

» Tue Nov 19, 2013 11:01 am

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.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

@LittleStain
thank you again
B
7
S
2
Posts: 44
Reputation: 668