How do I disregard X / Y ?

Get help using Construct 2

Post » Tue Jul 05, 2016 1:31 pm

I have a behavior plugin. (At least I think it is), it's called MoveTo.
This behavior allows you to move an object to an X/Y.

Unfortunately, there's no singular "Move to X" or "Move to Y", it's only "Move to X/Y"

I'm wondering if there's a specific command which will allow the Y value to stay as it is already?

Say for example, I want to move two objects to the same pixel height.
I could do 200, 0. But then it'd move both objects to X = 0, which isn't at all what I want. So, instead of writing '0', is there something I can write instead that says 'Don't worry about this one" ?

I hope I made sense. Sorry if I got X and Y mixed up lol.
B
28
S
11
G
1
Posts: 163
Reputation: 2,880

Post » Tue Jul 05, 2016 1:40 pm

Just Use Self.Y to leave Y alone.
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Tue Jul 05, 2016 1:51 pm

blackhornet wrote:Just Use Self.Y to leave Y alone.


Thank you very much :)
B
28
S
11
G
1
Posts: 163
Reputation: 2,880


Return to How do I....?

Who is online

Users browsing this forum: warmty and 11 guests