• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 19. Emulating the Natural World:... > Programming Simple Movement

Programming Simple Movement

There will come a time when you’ll want to control how objects on the Stage are moved around, and you’ll want more control than you get with simple tweening. You might be creating a game where the user controls an active object (like a ship), or you might be creating an application where you want to anticipate different movement possibilities. You’re going to have to do this using ActionScript. However, before you begin madly coding, you need to understand a little bit about how objects behave in the real world. That means you’re going to have to plunge into the world of physics. This shouldn’t be a scary thing— most of it is just common sense with a dash of math. Where to start? A good place to start is with Isaac Newton’s First Law of Motion. Newton’s First Law of Motion says, in essence:

Objects in motion tend to stay in motion, and objects at rest tend to stay at rest, unless they are acted upon by an outside force.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint