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.
[12:34 pm]
NudeRaider -- curiosity kills the cat!
[06:18 am]
Sylph-Of-Space -- No complaints here, i'm just curious!
[11:05 pm]
Ultraviolet -- :wob:
[2024-5-18. : 3:55 pm]
Zoan -- :wob:
[2024-5-18. : 10:34 am]
NudeRaider -- SEN doesn't rely on spammers initiate its sleep cycle. It hat fully automated rest and clean-up phases. Please understand that this is necessary for the smooth operation of the site. Thank you.
[2024-5-18. : 3:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
[2024-5-17. : 4:35 am]
Ultraviolet -- mud, meet my friend, the stick
Please log in to shout.


Members Online: Roy