PDA

View Full Version : [AS3] Input design



tronster
August 26th, 2008, 09:49 AM
Working on upgrading an AS2 game to AS3 and started thinking about the input system.

I've already have a working keyboard listener in my own input.as file, and a player.as to handle player specific sprite movement. I'm thinking if I leverage events that would be the best way to proceed, but I want a level of abstraction between input and player so I can move the player by pushing reply data into the system.

Any recommendation on an architecture that will allow for this?