27 May 2014 6:00 AM #1
Hi I'm new to Sencha animator.
To get started, I downloaded the ships example game from sencha's site and am trying to locate the code that triggers the ship 'explosion'.
I'm expecting the 'onclick' property to be set on the space shape symbol, but when I select one of the ships I see the click action is set to 'none'.
Can someone point me at the code (or config) that triggers the ship explosion?
Thanks in advance.
27 May 2014 9:49 AM #2
You're looking in the right place. In the 'Ship' symbol, there are 3 objects, the top one is called 'Handler'. Click event in the 'Handler' registers that the ship has been hit and triggers explosion animation.