Be a Supporter!

AS3 Keyboard events during lag

  • 594 Views
  • 1 Reply
New Topic Respond to this Topic
TaroNuke
TaroNuke
  • Member since: Oct. 5, 2005
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
AS3 Keyboard events during lag 2011-12-09 22:00:12 Reply

I've noticed that when the game drops frames, keyboard events may sometimes not register, and the key is "stuck" down for a couple of frames longer than intended.
In a highly precision based game, this is a nightmare, is there anything that can be done to work around it?

kylelyk
kylelyk
  • Member since: May. 15, 2008
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to AS3 Keyboard events during lag 2011-12-14 17:03:30 Reply

If the keyboard events DOWN and UP, and the EnterframeEvent are only being called once a frame, then you need to optimize the code and/or add quality settings.


Kylelyk: Forwards and Backwards, Over and Out.

BBS Signature