HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Diagonal Movement With The Arrow Keys

12-07-2004, 01:46 AM#1
UndercoverIdiot
How would I make it so that when you preass two arrow keys a unit stored to a variable will walk diagonal in the direction of the arrows?

-Thanks in advance
12-07-2004, 02:11 AM#2
th15
The specifics of application depend on the movement system you design. Your system could be event based, it could be time based.

Either way, you'd have to store a boolean variable for each player that indicates the status of that player's keypresses. i.e. you'd have a "Key North" and "Key West" variable. When both are true you know that the unit needs to be moved in a NW dirction
12-07-2004, 02:55 AM#3
ChipmunkMofia
Quote:
Originally Posted by SiR-BuMaLoT
How would I make it so that when you preass two arrow keys a unit stored to a variable will walk diagonal in the direction of the arrows?

-Thanks in advance

heres something i found a while back, its a arrow movement key with camera included. Dont give me credit, i didnt make this,.
12-07-2004, 05:51 AM#4
Guest
You can also download WEU which already have the events made for those movements.