HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hero Movement w/ keyboard

12-05-2004, 07:35 PM#1
koolmunkie
What triggers are needed to make a unit move with ur keyboard keys(, for example left key move left)
......^
.......l
<--:8-->
.......l
......"
and also i only have TFT v.1.17 + WE v. 1.17, not WEU or any advanced thing so the triggers gotta be compatable with my version
12-05-2004, 07:45 PM#2
AFB-DieHard
There are events for the arrow keys. Simply let your unit move forward by issueing an move order with point of offset from position of unit. When turning just change rotation of the unit(add something = right, I think)

I hope this helped, if you don't get this just ask :D
12-05-2004, 09:12 PM#3
koolmunkie
funny thing, i found a tutorial telling me how to do it at this tutorial(click here)
thx anyway and thx to PhantasyDreamer for the tutorial

BUT


how do i move a hero diagonally
(or how can i make it that two events must be used at da same time --like both down and right key must be held--if you know how to do it, thx)
12-06-2004, 11:33 AM#4
th15
The way I do it in my maps is that a boolean variable is set true/false when a player presses/releases a button. Then every 0.1 seconds or so, my movement trigger checks for legal combinations of key presses and orders the unit to move in the right direction.
12-11-2004, 02:39 AM#5
koolmunkie
i got the triggers correct now, heres the walking system capable of moving in eight directions...
enjoy... :god_help_us: :god_help_us: :god_help_us:
12-12-2004, 10:07 PM#6
PoP_PiP
Hope you aren't making an online map with keyboard controls. I learned the hard way just a few days ago, that the laggy delay makes for a really crappy experience.
12-13-2004, 12:18 AM#7
shadow1500
i made a map like that, and all worked but since i am bad at terraining
i stopped working on it.
the planes could land and use weapons like mechinegun and missiles.
it had support for multiplayer also.
12-15-2004, 08:47 PM#8
koolmunkie
Quote:
Originally Posted by PoP_PiP
Hope you aren't making an online map with keyboard controls. I learned the hard way just a few days ago, that the laggy delay makes for a really crappy experience.

no, only a single player RPG, right now im making models, u mite see wat im gona do l8er,

and oh ya, i bet it would be laggy ^_^