2 Replies Latest reply on Jul 31, 2017 4:22 PM by Kevin-Monahan

    expression to swap compositions based on path direction, orientation or rotation?

    russell888

      Say I have an object following a path, is there an expression to automatically swap to another composition or frames within a composition based on path direction?

       

      So in the below image, the composition with the first line of sprites will be used when the character is moving downward.

       

      When the character is moving left (or rotates 90 degrees) the expression swaps to the composition containing the second line of sprites etc.

       

      Maybe this can be done with all the sprites in the one composition and the expression swaps to different frames within the one composition?

       

      If you don't know the expression, any advice on where to look to find out more about this would be much appreciated.

       

      download.png