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: 219
Reputation: 2,181

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
57
S
24
G
14
Posts: 773
Reputation: 13,137

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: 219
Reputation: 2,181

Post » Tue May 09, 2017 2:37 pm

bump
B
25
S
8
Posts: 219
Reputation: 2,181

Post » Tue May 09, 2017 3:40 pm

B
40
S
22
G
81
Posts: 297
Reputation: 44,735

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: 64
Reputation: 2,689


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests