Thread: Simple Movement
View Single Post
  #2  
Old 10-06-2007, 08:15 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Hmm, there's a problem with this.
One, there's no loop, you're calling it on keypressed(unless you want it to be a more systematic movement than fluid). As I believe, keypressed is called when the key is first pressed, then the repeat(which is defined personally in the keyboard properties, so this will react very slowly if the person has the key repeat very low). Also, I think it'd be better if you used keydown(0-3), they're the default keys for arrow movement, and are also compatible with gamepads.
Reply With Quote