Move to the location of a UID

Get help using Construct 2

Post » Fri Jul 05, 2013 8:05 am

I'm not entirely sure how I can best word this, but here goes...

Lets say I have the UID of an object stored in a global variable. How would I go about setting the X and Y positions of another object to match the position of the object that I have stored the UID of..?

So in other words, how do I move one sprite to the location of another via it's UID rather than the sprite itself?Sean Noonan2013-07-05 08:07:42
B
39
S
7
G
2
Posts: 131
Reputation: 3,827

Post » Fri Jul 05, 2013 8:14 am

You would have to refer to the object to get it's location. You would pick by UID, and then look at the X & Y of what was picked.
B
215
S
57
G
32
Posts: 900
Reputation: 38,789

Post » Fri Jul 05, 2013 8:26 am

New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
268
S
96
G
67
Posts: 7,219
Reputation: 73,739

Post » Sat Jul 06, 2013 7:03 am

Perfect! That helped a bunch.

Thanks!
B
39
S
7
G
2
Posts: 131
Reputation: 3,827


Return to How do I....?

Who is online

Users browsing this forum: bikachu, ikazuchi, irwandwiyanto, jpstudio, thatserafimkid and 3 guests