• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

HTML5 Referring to a specific instance of an object with a specific sprite

A

akusrur

Guest
Hi :)
I am making a game and I wanted to know if there's a way choosing a specific instance of an object and only choose one who have a specific sprite.
For example: the object's create event:
Code:
sprite_index = choose(Red, Green, Yellow, Blue, Black, Orange, White);
and I want it to choose one specific instance of that object and it will chose only one who have the "Red" or "Green" sprite.

Thanks in advance :)
 
Top