Sorry to disappoint you. There just is no way. A good movement system HAS to be done with the KeyPress events. And if you have KeyPress events ANYWHERE in your system it'll suffer from lag.
I wouldn't say it can't be done completely. I spent two days working on a non-Keypress event WASD movement system. Using ability hotkeys I was able to get the unit to move well in all directions (including diagonal). The problem was when holding down a hotkey, then pressing and holding another hotkey, the original hotkey would no longer fire until you released it and pressed it again. This is the only problem I could not overcome with non-Keypress event movement. However, it could be useful in some situations where you needed no diagonal movement or in any situation where you dont need to press two of the directions at once. This would also work with a camera look system where the unit is turned by camera angle. Though it would be nice to make keypress lag free......
Sorry if this has been discussed before. I'm trying to streamline my WASD unit movement. Does anyone know if Key Pressed still generates network traffic for every key every player presses, even when you define a certain player and key? I was just thinking if that's the case, it would be better to have one key press trigger which determines the player and returns the key pressed. Thoughts? Thanks anyway.
0
I wouldn't say it can't be done completely. I spent two days working on a non-Keypress event WASD movement system. Using ability hotkeys I was able to get the unit to move well in all directions (including diagonal). The problem was when holding down a hotkey, then pressing and holding another hotkey, the original hotkey would no longer fire until you released it and pressed it again. This is the only problem I could not overcome with non-Keypress event movement. However, it could be useful in some situations where you needed no diagonal movement or in any situation where you dont need to press two of the directions at once. This would also work with a camera look system where the unit is turned by camera angle. Though it would be nice to make keypress lag free......
0
BoneMan 830 US Hammering away at my first SC2 project! Will test and need testers at some point.
0
Sorry if this has been discussed before. I'm trying to streamline my WASD unit movement. Does anyone know if Key Pressed still generates network traffic for every key every player presses, even when you define a certain player and key? I was just thinking if that's the case, it would be better to have one key press trigger which determines the player and returns the key pressed. Thoughts? Thanks anyway.