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
Develop games in your browser. Powerful, performant & highly capable.
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.
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,
If you really needed to, you could set frames or animations to values in an instance. seems impractical though.