Staredit Network > Forums > SC2 Assistance > Topic: Smooth keyboard movement
Smooth keyboard movement
May 21 2010, 1:34 am
By: UnholyUrine  

May 21 2010, 1:34 am UnholyUrine Post #1



I've been looking at the map attached below for a while, but I'm quite confused...
I'm no programmer, and the person who have done the map is quite obvisouly one...

Can anyone here explain the principles behind the smooth baneline movements?
Just treat me as stupid as you want.
TY very much

~Unholy



None.

May 21 2010, 2:39 am Centreri Post #2

Relatively ancient and inactive

What in particular? He decreases speed in the direction last moved in over time if buttons aren't pressed, nothing magical. I use something similar in Mech Combat, only implement it differently. Just have speed decrease over time. <_<.



None.

May 21 2010, 3:31 am UnholyUrine Post #3



Quote
what in particular

everything.. D: ... but w/e i'll try to focus my question



None.

May 22 2010, 4:23 am Centreri Post #4

Relatively ancient and inactive

You're working with unit movement speed. When the user presses a button of WASD, the baneling's speed is set to x and it moves in that direction. When no buttons are pressed, a periodic function decreases movement speed until it hits 0. This might be using a more advanced system where it takes into account previous velocity (for example, you maintain your previous X-axis speed even if you're only pressing a Y-axis button) but all that takes is some simple math to recalculate where you're ordering the unit to go.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:59 am]
NudeRaider -- *is
[05:17 am]
NudeRaider -- despite all its flaws the sound design its fantastic
[10:29 pm]
Oh_Man -- homeworld 3 = massive disappointment
[10:05 am]
Moose -- ya
[2024-5-14. : 5:23 am]
zsnakezz -- yes
[2024-5-12. : 8:51 pm]
l)ark_ssj9kevin -- Are you excited for Homeworld 3?
[2024-5-12. : 8:44 pm]
l)ark_ssj9kevin -- Hi Brusilov
[2024-5-12. : 4:35 pm]
O)FaRTy1billion[MM] -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
my server that was hosting it died
[2024-5-10. : 8:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
[2024-5-10. : 8:36 am]
Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
Please log in to shout.


Members Online: Roy