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
45
S
9
G
2
Posts: 141
Reputation: 4,197

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
233
S
62
G
33
Posts: 902
Reputation: 40,398

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
292
S
115
G
96
Posts: 7,295
Reputation: 70,785

Post » Sat Jul 06, 2013 7:03 am

Perfect! That helped a bunch.

Thanks!
B
45
S
9
G
2
Posts: 141
Reputation: 4,197


Return to How do I....?

Who is online

Users browsing this forum: beohs and 15 guests