Game Techniques 2

From ReThinkWiki

Jump to: navigation, search

Contents

Topic Summary

  • Develop code to accept keyboard and mouse input.
  • Study methods of organizing code, art and sound assets.

Topics Assignments

Related Links and Tutorials

Notes and Comments

KeyBoard input

  • in games, used within an onEnterFrame control loop to accept input
onEnterFrame = function() {
   if (Key.isDown(Key.RIGHT)) {  
      trace("WALK RIGHT");
      guy._x += speed; 
   }
}

Search the Web for more information

Here are some search results on Flash Character movment:

Personal tools