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
42
S
8
G
2
Posts: 136
Reputation: 4,012

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
223
S
59
G
32
Posts: 901
Reputation: 39,240

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
276
S
103
G
84
Posts: 7,292
Reputation: 83,106

Post » Sat Jul 06, 2013 7:03 am

Perfect! That helped a bunch.

Thanks!
B
42
S
8
G
2
Posts: 136
Reputation: 4,012


Return to How do I....?

Who is online

Users browsing this forum: jul, terrimac001 and 6 guests