set position by UID or IID

Get help using Construct 2

Post » Sat Nov 17, 2012 7:18 pm

I designed a sprite and duplicated with CTRL. Now, I want to get the position of each to send these values ??to a globals variables. How can I do that? I read a lot of tutorials and topics of forum about UID and IID, no sucess. Please, help about this. I dont know if this is a best way to resolve it.

https://www.dropbox.com/s/582up1k98pffdp7/getUID.capx
B
39
S
6
Posts: 79
Reputation: 4,040

Post » Sat Nov 17, 2012 8:43 pm

Sprite(0).X Will give you the X position of the sprite with IID 0. To easily display all the positions based off the IID you just loop through the Sprite objects, then use Sprite(loopindex).X to get the X value for each sprite.

Example:
getUID.capx (r109)Nimtrix2012-11-17 20:47:16
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Sat Nov 17, 2012 8:49 pm

The example can't be downloaded. :_(
B
39
S
6
Posts: 79
Reputation: 4,040

Post » Sat Nov 17, 2012 8:51 pm

Yea I know, can't find out what's wrong. Won't let anyone download from my dropbox for some reason. Gonna try something else instead.

EDIT: Seems to be working now thoughNimtrix2012-11-17 20:52:06
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Sat Nov 17, 2012 8:59 pm

No problem, I had already used this and i don't gotten success. I don't know why, but... THANK YOU VERY VERY MUCH :D

I'll try again!dznerpro2012-11-17 20:59:53
B
39
S
6
Posts: 79
Reputation: 4,040

Post » Tue Nov 20, 2012 4:05 am

http://forums.wasabistudio.ca/viewtopic.php?f=63&t=37800
LOOK!!
B
16
S
5
G
4
Posts: 26
Reputation: 4,209

Post » Fri Nov 23, 2012 8:58 am

Ough! I don't understand oriental language, lol.
B
39
S
6
Posts: 79
Reputation: 4,040


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 23 guests