Set Position to another object's X or Y

Discussion and feedback on Construct 2

Post » Sun Aug 11, 2013 8:05 am

@Ashley im having problems in implementing player from falling off pipes even if the player didn't want to.for my stealth game

Would it be possible to Set Position to another object's X or Y
B
27
S
6
G
2
Posts: 222
Reputation: 2,823

Post » Sun Aug 11, 2013 11:38 am

Yep, use the set Position action.
B
141
S
68
G
17
Posts: 1,769
Reputation: 20,224

Post » Sun Aug 11, 2013 3:45 pm

ofcourse it would be convenient to be able to
Set Position relative to another object's X or Y
B
27
S
6
G
2
Posts: 222
Reputation: 2,823

Post » Sun Aug 11, 2013 3:57 pm

It would be convenient, and it's also very doable with a simple expression.

Use the action Set position, and enter whatever relative position you'd like into the X and Y boxes, such as ObjectB.X+50, ObjectB.Y-150. Alternatively, if you want the object to always be locked to another, use the Pin behaviour once you've moved ObjectA into its initial position.
B
57
S
15
G
11
Posts: 912
Reputation: 12,581


Return to Construct 2 General

Who is online

Users browsing this forum: yme and 5 guests