Change Created Buttons Animation (Used Array)

Discussion and feedback on Construct 2

Post » Thu Dec 31, 2015 7:58 pm

Message: Behdadsoft can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hi.

I made three Button with Array. my button sprite had three animation and I want for each button set one animation (e.g: set Anim_1 for Button 1, Anim_2 for Button2 and so on). I test some ways to do this but I don't know how can do it. if possible please Guide Me.

you can download my capx Project at below link:

https://www.dropbox.com/s/25mf4od4kqstkby/Create%20Btns.capx?dl=0

Thanks.
B
8
S
1
Posts: 30
Reputation: 580

Post » Fri Jan 01, 2016 7:52 pm

Assign a instance var for your button. Give them {0, 1, 2} respectively. Read their id in a for each loop, and assign corresponding animation.
Providence University, lecturer.

Tatung University, lecturer.



Consultant per question: USD$15 / time

Consultant by month: USD$300 / month

Customized project: USD$2500 / capx
B
78
S
16
G
4
Posts: 196
Reputation: 7,688

Post » Sat Jan 02, 2016 7:39 am

Thanks. :)
B
8
S
1
Posts: 30
Reputation: 580


Return to Construct 2 General

Who is online

Users browsing this forum: Google [Bot], rbailey83 and 25 guests