Animations triggered when Target initiated
I'm coding in the animations for the X-wing, and the animations are done-- basically the Star Wars X-wing has neat things called "S-foils"-- when s-foils are off, the X-wing's wings are closed. With them closed, the X-wing can move faster but cannot engage in combat. They remain closed when the X-wing is at the airfield. When the X-wing engages in combat, the s-foils turn on and the wings open, lowering the speed of the x-wing, but the x-wing can now engage in combat.
The animations for the opening and closing of the wings are complete-- all I have to do is impliment it into the code. Ideally:
1. Wings remain closed at airfield
2. If X-wing is told to engage in combat while already taken off, the wings open and the speed decreases
3. If X-wing is told to engage enemy while still on airfield, wings remain closed until takeoff is complete
4. When X-wing is told to move somewhere after combat, the wings close and the x-wing speeds up
5. When the X-wing is told to go back to the airfield or automatically is told to go back to the airfield, the wings close if they are not, and the x-wing is in its faster-moving state.
How close to this can we get? How can I achieve this?
Thanks for your help.
|