how can i add a conditions to a layer.on Events.click,->...I mean layer.on Events.click can do only under one conditions is true？
Hey Cyrus, you can assign the value true or false to a variable (called a boolean) and change this depending on some interaction or function. Then, you could write a simple conditional statement. Note that this is the same as simply writing "if condition". (Also only runs if "condition" evaluates to "true)
Or you could use a conditional statement based on another layer - like checking the animationEnd event or current state of another layer.
ths very mach...
You could also do: