How do I use an image multiple times

Get help using Construct 2

Post » Thu Mar 20, 2014 7:55 am

I want to use an image multiple times in same layout. Each image will act independently and pressing a image will do a different action. Currently, if i change name of an instance, it changes name of all other images as well.
I also tried to put all images in an animation and each image is at particular animation frame. But the mouse/touch not detecting the image frame. Is there a way to do this ?

Thanx in advance.
B
6
S
2
G
1
Posts: 77
Reputation: 708

Post » Thu Mar 20, 2014 7:56 am

Use instance variables.
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Thu Mar 20, 2014 8:07 am

@Vuuv: Thanx for the quick reply. I assigned the instance variable (number) for each image. But how can I access that variable ?
B
6
S
2
G
1
Posts: 77
Reputation: 708

Post » Thu Mar 20, 2014 8:12 am

object.variablename
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Thu Mar 20, 2014 8:18 am

okay. Thank you very much. It worked perfectly. Saved lots of repetitive images. Thanx again.
B
6
S
2
G
1
Posts: 77
Reputation: 708


Return to How do I....?

Who is online

Users browsing this forum: tarek2, wenwen11212016 and 8 guests