Hello all, I would like to congratulate the developers on building a very slick engine and a strong community.
I need some help figuring out turn based movement/unit selection (picking) and time lines.
What I expect to see happen here is members of the yellow family get selected by the basis of a comparison of a private id variable and a global temporary variable �
intended Flow�
Cap starts out with player turn enabled
Player clicks the layout which sets a sprite at the mouse x/y � this sprite becomes the movement target for the yellow family of sprites.
What should happen next is that a sprite should be highlighted in blue, then about 1 second latter the target sprite should be highlighted in red, then 1 second latter the sprite should move 128 pixels towards the target sprite, pause for 1 second move another 128 pixels then deactivate causing the blue and red overlays to move off screen and the next yellow family sprite to activate with same behavior and then the third.
After all the yellow family sprites have moved, the AI turn is over and the user should be able to click the layout setting the target sprite to new location and if it were to the right side of the layout the yellow family sprites would all go through their move routine sequentially, players turn etc etc.
Should be simple but somehow it is evading me. I do not have a strong understanding of timelines or functions (ideally I would like to wrap as much functionality as possible into functions).
Any help or guidance appreciated and thank you.
Cap can be found here:
http://www.filedropper.com/timelinetest