As the topic says. I am trying to set each flag a different animation based on if the level has been completed or not. How do I control each instance of the flag? Please don't tell me I need to make 6 different flag sprites :/
Develop games in your browser. Powerful, performant & highly capable.
something like (not the best animation)
https://dl.dropboxusercontent.com/u/143636437/examples%20for%20web/flag%20test.capx
edit updated with better flags
edit 2 File size reduce a bit
Thank for the huge download, lol.
Unfortunately, with mouse clicks you can control which instance simply by which one was clicked. I need some other way to reference each individual one on its own. Like some sort of UID? I don't know.
You can add a dedicated instance var for it.
Give each flag a unique number in their var.
famflag.flagnumber
Event
Pick by evaluate famflag : famflag.flagnumber = 1
action
do something to famflag which has flagnumber 1