How do I PICK BY UNIQUE ID

Get help using Construct 2

Post » Sun Nov 22, 2015 1:38 am

how to pick like 2 object out of 3 object when using PICK BY UNIQUE ID
to pink one i use the following code which work BUT i have alot to pick and set it Var (can i pick more than one or i have to pick the 100 of them i write the following line of code for the with the SAME VARIBLE)

sprite...pick instance with UID 1..../ sprite set variable to "Help me"
i DO NOT a random UID, so dont say i most use this

PICK BY UNIQUE ID _ choose(1,2)

i want to pick some specific UID what formula can i use
B
9
S
2
Posts: 66
Reputation: 717

Post » Sun Nov 22, 2015 7:38 am

Pick by unique ID only picks the one object with that unique ID, so you are not then able to narrow this selection down.

by the sound of it you do not want to use UID but select your objects with another method...

you might want to look at "compare instance variable" ?
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,782

Post » Sun Nov 22, 2015 8:38 am

after a very long search i found it in one of you post lol
thank to you and blckhornet
like this
sprite.uid 2 | sprite.uid 5
and it work
B
9
S
2
Posts: 66
Reputation: 717


Return to How do I....?

Who is online

Users browsing this forum: lukezero, RobertMKD and 8 guests