Lynda.com: Become a Unity 2D Developer (Day 12, Completion)
More Enemies Aliens that Attack For this exercise, I once again had to create a game object using specified frames and assigning values accordingly. Ultimately, I created another alien enemy using frames 1 - 10 for an idle animation. From there, I created an additional animation based on the frames 11- 16 for an attack animation. Lastly, I placed the new Alien enemy onto the stage and tested it. Although the animations worked by manually adjusting the values, it was now time to add code to automate the animations. I then applied this script onto the alien in order to trigger the new attack animation. At this time, the code and the trigger function is working as designed. **Note, there appears to be some sort of transparency issue with the Alien, but the code is working as intended.** Animation-based Attack Trigger In order to ensure that the alien attack will trigger the correct animations for the alien and the astronaut, I had to incor...