Game Techniques 2
From ReThinkWiki
|
Topic Summary
- Develop code to accept keyboard and mouse input.
- Study methods of organizing code, art and sound assets.
Topics Assignments
- Learn how to Move the Object using arrow keys.
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:
- Google results for "flash & moving & keyboard".
- Ask.com results for "flash & moving & keyboard".

