• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Arrow key movement animation

Status
Not open for further replies.
Level 8
Joined
Dec 29, 2006
Messages
359
Okay, so i made an arrow key movement system for my map, and it works fine. Problem is, since its a periodic event that happens every .15 seconds, the units animation becomes really jittery since he is being ordered to move every .15 seconds. Is there any way to keep my movement system and keep the units animations fluid?
 
Okay, so i made an arrow key movement system for my map, and it works fine. Problem is, since its a periodic event that happens every .15 seconds, the units animation becomes really jittery since he is being ordered to move every .15 seconds. Is there any way to keep my movement system and keep the units animations fluid?

You could make the movement distance more broad and have it adapt to key presses. Or make it happen faster than that.

What I mean is, you could have it tell your unit to run VARIABLEy west should you press left arrow. Then have a WHILEMOVING trigger that activates on the first press, which makes all future key presses for VARIABLEy distance ADJUST the angle your unit is heading towards, therefore changing the direction while he's already in motion?

Sounds fun to write.
 
you mean like instead of having the unit move every x seconds, have them move to a point once and then in the whilemoving trigger have the point move or something like that?
 
I would suggest you create a structure type unit (non structure type units don't run their walk animations properly from a trigger command) and then make that structure type unit play the walk animation in the direction you want. Then you just move it every .01 seconds in that direction. I've thought of a good system to do it, I'll build it next time I have some time, which sorry,(is not now) Good Night!
 
Status
Not open for further replies.
Back
Top