I want to play an animation on layout A when I click a button on layout B. How do I do this?
Develop games in your browser. Powerful, performant & highly capable.
Probably easiest for You will be to use global variables to check buttons states.
On layout B -> On button pressed set global variable to 1
On layout A -> variable = 1 - play animation