1. #1
    Sencha User
    Join Date
    May 2014
    Posts
    1
    Vote Rating
    0
    krausej78 is on a distinguished road

      0  

    Default Ship Example

    Ship Example


    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.

  2. #2
    Sencha - Architect Dev Team
    Join Date
    Apr 2012
    Posts
    226
    Vote Rating
    21
    miro.bojic will become famous soon enough miro.bojic will become famous soon enough

      0  

    Default


    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.

Thread Participants: 1