RoarMan
Member
- Reaction score
- 12
I was wondering how you would make control a hero and make it move with the WASD or arrow keys.
I was wondering how you would make control a hero and make it move with the WASD or arrow keys.
E: Player presses W key
A: Move HERO to (position with offset) position of HERO offset of 0, 100
I guess 99.9999% it is impossible
I was wondering how you would make control a hero and make it move with the WASD or arrow keys.
Search Arrow Key movement...now that IS possible
oh...i MEANT arrow keys, but if you hold them down they dont do anything... and your screen moves all over the place too ^^
No...they made it..perfectly fine...you should try it Corkysmurf..you might like it...and no your camera won't move..it gets locked to your main char.
If
you don't like them
Then
deal with it. Use them or make your own.
Else
Wait a second... !!!
Oops?
Press Left Arrow
Events
Player - Player 1 (Red) Presses the Left Arrow key
Conditions
Actions
Set Unit_HeroPosition = (Position of Unit_Hero)
Unit - Order Unit_Hero to Move To (Unit_HeroPosition offset by (99999.00, 0.00))
Custom script: call RemoveLocation(udg_Unit_HeroPosition)
Release Left Arrow
Events
Player - Player 1 (Red) Releases the Left Arrow key
Conditions
Actions
Unit - Order Unit_Hero to Stop
In my map I can guide the hero with the arrow keys.
I use a timer loop and the walk animation.
It looks like the normal movement and he can be guided by holding down a/2 key(s).
I used the following events:
Key Press for all 4 keys
Key up for all 4 keys
Timer loop
Works quiet well but there seems to be no way to do this with wasd
(invent your own natives / functions .. whatever would work for the singleplayermode)