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.
[2024-5-28. : 8:43 am]
TheHappy115 -- Yea, thats the issue. Thanks. It would also explain why my deleted map couldn't get updated. Updated version reduced collision on units (only thing added) since was dodging game (players collide with each other)
[2024-5-28. : 5:26 am]
Ultraviolet -- If so, I'd just focus on getting them on scmscx.com and then you can link to that in the showcase thread for your maps
[2024-5-28. : 5:25 am]
Ultraviolet -- I can't upload my EUD maps, I think the DLDB has some issue with handling them. Are you trying to upload EUD maps?
[2024-5-28. : 2:06 am]
TheHappy115 -- Its been awhile but ever since I requested one of the Maps I posted to be deleted since I couldn't delete it myself (or update it), I haven't been able to upload any more maps. Any reason for that?
[2024-5-26. : 7:14 pm]
Kyradax -- Hi
[2024-5-26. : 5:05 pm]
O)FaRTy1billion[MM] -- :wob:
[2024-5-25. : 9:22 am]
Zycorax -- :wob:
[2024-5-23. : 3:50 pm]
Ultraviolet -- :wob:
[2024-5-23. : 6:26 am]
UndeadStar -- :wob:
[2024-5-22. : 6:10 am]
Riney -- Somethings never change.
Please log in to shout.


Members Online: Roy, X405, Kyradax