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
24
S
10
G
1
Posts: 153
Reputation: 2,660

Post » Tue Jul 05, 2016 1:40 pm

Just Use Self.Y to leave Y alone.
ImageImageImage
B
71
S
21
G
233
Posts: 3,696
Reputation: 130,368

Post » Tue Jul 05, 2016 1:51 pm

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


Thank you very much :)
B
24
S
10
G
1
Posts: 153
Reputation: 2,660


Return to How do I....?

Who is online

Users browsing this forum: David181, OBLIVION, senecaa, Yahoo [Bot] and 24 guests