How do I add images to different instance variables?

Get help using Construct 2

Post » Fri Apr 18, 2014 8:42 am

How do I change color or images of different instance variables with different values?

The red bars to be picked up having different color or images.

thanks in advance :D
You do not have the required permissions to view the files attached to this post.
B
47
S
14
G
20
Posts: 87
Reputation: 12,913

Post » Fri Apr 18, 2014 9:20 am

If you want the 3 red instances to be different images altogether, maybe you need to make 3 separate sprites, and add them to a family to manage their behavior on the eventsheet. https://www.scirra.com/manual/142/families

if you're set on just using the same object with different images depending on a variable, take a look at this: https://www.scirra.com/manual/75/how-events-work
there you'll learn how instances are picked.
B
43
S
12
G
6
Posts: 446
Reputation: 6,802

Post » Sat Apr 19, 2014 6:58 am

I already thought of it that it would be impossible to have different images with one sprite even with different variable values. I just tried if somebody have done it. Anyway I'll read your two advised tutorials, Thanks Sargas,
B
47
S
14
G
20
Posts: 87
Reputation: 12,913

Post » Sat Apr 19, 2014 9:48 am

If you really needed to, you could set frames or animations to values in an instance. seems impractical though.
B
43
S
12
G
6
Posts: 446
Reputation: 6,802


Return to How do I....?

Who is online

Users browsing this forum: amazingdream, Yahoo [Bot] and 19 guests