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.
[04:56 am]
Ultraviolet -- I suppose we'll likely never know, but my guess would be that they already saw it operating successfully and there was no monetary incentive to finish the original work. And the dev cycle in old school Blizzard was so hectic, it's possible it just got forgotten about after the original game got released. Plus there's an element of existing MPQ files that were packaged with the original discs becoming outdated if they updated it. And it's not like they remade the original MPQs, they just made new ones for BW specifically
[04:26 am]
Oh_Man -- so that makes me think maybe the theory they are unfinished is not true and its a deliberate design decision, coz why not finish them wen ur making brood war?
[04:25 am]
Oh_Man -- the thing is thos buildings are from classic. that means they went ahead and made brood war without ever finishing the 'unfinished' buildings
[06:15 pm]
Ultraviolet -- Yeah he's talked about a lot of that stuff in his casts before. It seems plausible. Especially knowing how Blizzard of yesteryear operated.
[03:47 pm]
NudeRaider -- to clarify: couldn't recall the behavior for every single Protoss building but I was aware the disparity exists.
[03:43 pm]
NudeRaider -- Contained nothing new for me. Didn't know all building's behavior, but very much all unit's. Also Terran balance whine - also nothing new :lol:
[2026-6-19. : 9:57 am]
Oh_Man -- makes me wonder if SEN knows anything about the topic
[2026-6-19. : 9:57 am]
Oh_Man -- artosis dropped pretty interesting vid: https://youtu.be/EqZHB8Blra4
[2026-6-18. : 5:01 pm]
Ultraviolet -- :wob:
[2026-6-17. : 6:15 am]
RexyRex -- :wob:
Please log in to shout.


Members Online: Moose