SineCosine
I'm still looking for my Tangent
- Reaction score
- 77
Well, this little map I'm making has 4 heroes..
One hero, in particular, is more keyboard oriented for reasons I'd rather not mention.
So, I've decided to add in an optional method of movement to whichever player picks this keyboard-oriented hero.
I want the arrow keys the player presses to move the hero.
Up - Moves the hero forward
Down - Makes the hero face backwards and move from the new 'forward'
Left - Hero does not move, only turns left
Right - Hero does not move, only turns right
Detecting which player has the hero is easy..
The rest.. uhh..
Wha-?
I can't think of how to do it as I've never done it before =x
I can't use SetUnitPosition.. can I?
Also, the RotatingCamera thing..
When I use..
RotateCamera 80Degrees
RotateCamera 40Degrees
(Note that these are not the actual Jass functions xD)
I expect the camera to move120Degrees,
However, it just turns 80 Degrees, resets and then turns 40Degrees..
How do I get around it? o.0
So..
I'm just looking to be guided in the right direction.
01) How do I make a keyboard-arrowkeys movement system?
02) How do I get around the camera rotating in this weird way?
One hero, in particular, is more keyboard oriented for reasons I'd rather not mention.
So, I've decided to add in an optional method of movement to whichever player picks this keyboard-oriented hero.
I want the arrow keys the player presses to move the hero.
Up - Moves the hero forward
Down - Makes the hero face backwards and move from the new 'forward'
Left - Hero does not move, only turns left
Right - Hero does not move, only turns right
Detecting which player has the hero is easy..
The rest.. uhh..
Wha-?
I can't think of how to do it as I've never done it before =x
I can't use SetUnitPosition.. can I?
Also, the RotatingCamera thing..
When I use..
RotateCamera 80Degrees
RotateCamera 40Degrees
(Note that these are not the actual Jass functions xD)
I expect the camera to move120Degrees,
However, it just turns 80 Degrees, resets and then turns 40Degrees..
How do I get around it? o.0
So..
I'm just looking to be guided in the right direction.
01) How do I make a keyboard-arrowkeys movement system?
02) How do I get around the camera rotating in this weird way?