Move Enemy
Summary
Well, I hope that wasn't too great a challenge for you. We mostly reinforced our skills. If you're still feeling a bit baffled, that's OK too! Practice most certainly makes better.
Let's go over three key components of the Object Oriented Programming paradigm:
- Objects: These are our nouns, like enemy, ship, or laser.
- Properties: These are our adjectives, which define things like the size, position, or color of objects.
- Functions: These are our verbs, which make our objects do things like attach, move or wrap.
What We Did
- Created an enemy MovieClip
- Attached a single copy of enemy and set the x,y position as part of the init function
- Created a moveEnemy function
- Called the moveEnemy function
Have Fun