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

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
226
S
60
G
33
Posts: 902
Reputation: 39,989

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
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

Post » Sat Jul 06, 2013 7:03 am

Perfect! That helped a bunch.

Thanks!
B
44
S
9
G
2
Posts: 141
Reputation: 4,172


Return to How do I....?

Who is online

Users browsing this forum: ivanski1983, KTML5 and 3 guests