How do I set position to image point 1

Get help using Construct 2

Post » Mon May 08, 2017 10:46 am

How can i set position of SpriteA to position SpriteB but on his image point 1 ?
B
25
S
8
Posts: 212
Reputation: 2,167

Post » Mon May 08, 2017 10:49 am

You can use the Pin+ behaviour to pin objects to another ones image points and tons of other different ways:

viewtopic.php?f=153&t=190203
B
54
S
23
G
12
Posts: 746
Reputation: 11,908

Post » Mon May 08, 2017 4:45 pm

i need to understand how expression must use to works with imagepoints other than origin

second question

How do i event
when SpriteA.y is more than spriteB.imagepoint1 do something
??
B
25
S
8
Posts: 212
Reputation: 2,167

Post » Tue May 09, 2017 2:37 pm

bump
B
25
S
8
Posts: 212
Reputation: 2,167

Post » Tue May 09, 2017 3:40 pm

B
38
S
22
G
60
Posts: 223
Reputation: 34,034

Post » Tue May 09, 2017 4:52 pm

SpriteB Set position to another object > Pick Sprite A and image point 1


Whenever you refer to SpriteA.X or SpriteA.Y you will pick the coordinates for the image point 0, but if you add a (x) after it you will pick the x image point coordinate, e.g. SpriteA.X(1) picks image point 1 coordinate X for SpriteA
B
22
S
4
G
3
Posts: 61
Reputation: 2,683


Return to How do I....?

Who is online

Users browsing this forum: mindragon73, nahima, tdcostas and 21 guests