• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

!New! Walking(by keyboard) System help

Status
Not open for further replies.
Ok ive created/modified(GUI) a new kinda walking system based off of Matilda_Knights Pilot system. Using the up arrow to go forward, and the left and right to turn the hero. Instead of the left and right directions, it turns the hero then u can go forward the direction of the turn.

Im having trouble with the animations when you press the "Up" key. Ive tried to make the walk animations work when you go forward but it does not work??:sad:

Can any1 try to fix it??

Thanks

ps: plz dont use it yet, its still in developing.:spell_breaker:
 

Attachments

  • walking system.w3x
    168.9 KB · Views: 56

Lej

Lej

Level 3
Joined
Jun 5, 2004
Messages
36
Couldn't get it to work with GUI but using a single line custom script works:
  • Custom script: call SetUnitAnimationByIndex(udg_UnitP1, 4)
This sets the units animation to walk, add it to the up trigger. Then you might want to add a reset animation action to the uprelease trigger to make him stop when you release up.
 
Level 10
Joined
Nov 10, 2004
Messages
351
Suggestions:

-Remove the leaks, each player moving leaks 200 locations per second.

-The interval 0.01 is too low. Set it to somewhere about 0.03. 0.03 is much more efficient, and the human eye won't be able to see much difference.

-Make it MUI. And by that i don't mean that you have to copy the same triggers 12 times.

-Make use of the down arrow key.

-It is kinda weird that you have the movement ability on the unit..

-Don't use 0.01 interval for the camera aswell.. it will cause heavy lag.
 
Status
Not open for further replies.
Top