lucid as well :)
hi to the community !i need your help.
for the past 2 days i am trying to figure out what is going on until i stumbled on this thread.http://www.scirra.com/forum/r154-for-each-and-trigger-Once_topic82932.html
i have for example 3 instances of a scml animation(spriter).it is in a container with a sprite box background and i run it every tick on top of it.
i have a LOS (line of sight ) behavior on my sprite box
if "sprite box" has LOS on player----set scml animation to "walk"
if "sprite box" has NOT LOS on player----set scml animation to "IDLE"
if i use this, then the animation gets stuck on the first frame (no tweening no nothing)because i think it runs every tick so it resets 60 times per second and plays from the beginning all the time .
if i add a sub-event "trigger once while true" it works(the animation) up to the moment it switches between LOS and NOT LOS and the reason is in what Ashley said that it is a system condition(the "trigger once") and does not pick instances!so only one instance switches between idle and walk and the rest stay on the previously played animation (wish i knew that 2 days ago :p) maybe i could use uid but that would be a pain to implement if i have 20 instances of my scml in every layout.
so any ideas on what to do to solve this?