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
61
S
26
G
16
Posts: 802
Reputation: 14,495

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
47
S
29
G
91
Posts: 342
Reputation: 50,712

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: 68
Reputation: 2,697


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests