HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Keyboard Movement

05-02-2006, 05:45 PM#1
xXx-Tricky-xXx
Hey, currently I am using the way where your unit is just moved with an offset when moving around with arrow keys and rotates ect it works great. The bad thing is, when you play with more than one person, the enemy looks real wierd sliding around the map. Is there a different way of movement. Ordering the unit to move is about just as bad, and then makes it so you cant rotate as your moving forward or backwards.
05-02-2006, 05:55 PM#2
Thunder_Eye
Your wrong with the "cant turn while moving forward", I have an movement system that does it.

Anyway for your maing question: I dont know.

You could probably move the unit with triggers(not order it) and make it play the move animation.
If done perfect it might be good, but else It'll just suck and look buggy.
And it will be very hard to get the exact timing to make it perfect.
05-02-2006, 06:10 PM#3
Tim.
It's all very, VERY easy. Your problem I am sure is that you are either using SetUnitPosition() with an offset of 50 or somthing like that. Instead use SetUnitX() and SetUnitY(). Anyway, careful, no matter what you do it will be laggy as heck online.
05-02-2006, 06:15 PM#4
Thunder_Eye
I know SetUnitPosition resets animation and SetUnitX/Y dont, not sure but It might still be hard to time the animations perfect. (I might be wrong though)
05-02-2006, 06:16 PM#5
Tim.
You are wrong :P It's easy. It took me all of 5 minutes to set up.
05-02-2006, 06:18 PM#6
Thunder_Eye
Ok ;P
Ive never tested it and never seen it so its hard to know how it'll turn out then :P
05-02-2006, 07:04 PM#7
Captain Griffen
Use animation indexs for walk animation, otherwise it won't work well.
05-02-2006, 08:34 PM#8
xXx-Tricky-xXx
i need to use rotation on left and right.

Im not sure tho, i never used x and y not sure how, id have to check when i get home.

Post 2:

hmm i dont understand, do i use set offset?
Set KeyMoveTo = ((Position of (Picked unit)) offset by (24.00, 24.00))
any coordinates I use makes it go the wrong way so i know 24 24 is wrong but it does the same thing, it slides. But you said no offset, I cant find any set unit x and y.

Only other thing I see is convert coordinates to point. And that just sets a certain point on the map. Or is that what I use? And set where the unit is and make an offset in the x and y? Otherwise im confused.

Edited by Blade.dk. Reason: Double post.
05-02-2006, 09:46 PM#9
Tim.
SetUnitX() and SetUnitY() are not in the GUI. Welcome to the very narrow world of JASS.
05-02-2006, 09:50 PM#10
PipeDream
Aftermath's fps system is based on move orders and you can turn while walking. Check it out.
05-02-2006, 09:50 PM#11
Captain Griffen
Also bear in mind they have no safeguards. They won't hesitate to put them onto a cliff, onto water, and will cause crash if it goes off the map.
05-03-2006, 06:17 PM#12
xXx-Tricky-xXx
i dont know jass so I have no idea how to do it. I have only a few jass things like leak removing and filters.
05-03-2006, 06:58 PM#13
Captain Griffen
Custom Script: SetUnitX( xvalue )
Custom Script: SetUnitY( yvalue )
05-03-2006, 08:37 PM#14
The)TideHunter(
use the boolean statment IsPointPathable, its not called that but its something along the lines, il search some threads for it
05-03-2006, 09:56 PM#15
xXx-Tricky-xXx
lol griffen you might have to show me an example. Because u cant just type unit Im not sure exactly what you put in there.