Onclicked on Instantiate button ?

Get help using Construct 2

Post » Mon Aug 24, 2015 6:27 pm

Hi,

I created 3 instantiate Button with CreateObject and i'd like to do a different action for every button when i use ONCLICKED ?

Button IID 1
Button IID 2
Button IID 3
(created from Button UID1)

I tried with Pick by unique ID in SUBevent but doesn't work, this command is to use with IUD and not with IID ?

Best regard

(sry for my bad english, im french)
B
6
S
1
Posts: 50
Reputation: 502

Post » Mon Aug 24, 2015 7:37 pm

as a subevent under On Clicked,

use System > compare two values, where first value is Button.IID

and second value is the IID to look for (they start with 0, so you will have 0, 1, or 2)
B
96
S
33
G
20
Posts: 438
Reputation: 17,665

Post » Tue Aug 25, 2015 3:31 pm

Its perfect, thank you bro
B
6
S
1
Posts: 50
Reputation: 502


Return to How do I....?

Who is online

Users browsing this forum: 25games, Ashley, mcscooter, TRMG and 33 guests

cron