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.
[07:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
Please log in to shout.


Members Online: Ultraviolet, O)FaRTy1billion[MM]