How do you move units with arrow keys

  • Thread starter Thread starter mik19
  • Start date Start date
M

mik19

Guest
Can someone tell me how to make a specific locked hero. So it moves only with arrow keys.
 
you know, this forum DOES have a search function, this topic came up just a little bit ago today. look under free trigger thread, theres a few in there.
 
It's a downloadable map with the triggers inside. It's kinda heavy to put as an example on the web.

The map
 
Yeah i found out how to move my guys but i cant seem to do it with multiple units cause it seems to long and to complicated with multiple units/players
 
not that hard with multiples, you just have to have the repeating move always on, and have it do for each integer A, and have it do all the stuff for each player. if you want to see an example, look at the one i did for aviator wars, its in the members projects forum, it should give youthe basic idea.
 
Not really, all it is, is just Pick every unit Selected by triggering player and do (move...)
 
MeRcChRiS all it is, is this:
Code:
Initialize Right
Event: Player 1 Red presses the right key
Conds: None
Acts: set moveright = true (boolean variable)
If movingplayer[1] = false then do *
[indent]Set movingplayer[1] = triggering player (player var)[/indent]
Else: Set movingplayer[2] = triggering player [(this will have to be done the amount of times = to the number of players in your game)]
--------------------------------------------
Initialize Up
Event: Player 1 Red presses the up key
Conds: None
Acts: If movingplayer[1] = false then do *
[indent]Set movingplayer[1] = triggering player (player var)[/indent]
Else: Set movingplayer[2] = triggering player [(this will have to be done the amount of times = to the number of players in your game)]
set moveup = true (boolean variable)
--------------------------------------------
Move Up
Events: Every .5 seconds of the game
Conds: Moveup = true
Actions: Pick every unit selected by movingplayer[1] and do *
[indent]Issue picked unit to move to point of picked unit + 0, 100 (point with offset)[/indent]
--------------------------------------------
Move Right
Events: Every .5 seconds of the game
Conds: Moveright = true
Actions: Pick every unit selected by movingplayer[1] and do *
[indent]Issue picked unit to move to point of picked unit + 100, 0 (point with offset)[/indent]
--------------------------------------------
Move Upright
Events: Every .5 seconds of the game
Conds: Moveup = true
Moveright = true
Actions: Pick every unit selected by movingplayer[1] and do *
[indent]Issue picked unit to move to point of picked unit + 100, 100 (point with offset)[/indent]
--------------------------------------------
Releases Up
Events: Player 1 Red releases up key
Conds: none
Acts: Set movingplayer[1] = no player
set moveup = false
--------------------------------------------
Releases right
Events: Player 1 Red releases up key
Conds: none
Acts: Set movingplayer[1] = no player
set moveright = false
Of course this is for single player mode, you will have to edit it to your liking, and for multiplayer mode.
 
thats overly complicated, but you're on the right track:
Code:
Left Pressed
    Events
        Player - Player 1 (Red) Presses the Left Arrow key
        Player - Player 2 (Blue) Presses the Left Arrow key
        Player - Player 3 (Teal) Presses the Left Arrow key
        Player - Player 4 (Purple) Presses the Left Arrow key
        Player - Player 5 (Yellow) Presses the Left Arrow key
        Player - Player 6 (Orange) Presses the Left Arrow key
        Player - Player 7 (Green) Presses the Left Arrow key
        Player - Player 8 (Pink) Presses the Left Arrow key
        Player - Player 9 (Gray) Presses the Left Arrow key
        Player - Player 10 (Light Blue) Presses the Left Arrow key
    Conditions
    Actions
        Set TurningLeft[(Player number of (Triggering player))] = True
Code:
Left Released
    Events
        Player - Player 1 (Red) Releases the Left Arrow key
        Player - Player 2 (Blue) Releases the Left Arrow key
        Player - Player 3 (Teal) Releases the Left Arrow key
        Player - Player 4 (Purple) Releases the Left Arrow key
        Player - Player 5 (Yellow) Releases the Left Arrow key
        Player - Player 6 (Orange) Releases the Left Arrow key
        Player - Player 7 (Green) Releases the Left Arrow key
        Player - Player 8 (Pink) Releases the Left Arrow key
        Player - Player 9 (Gray) Releases the Left Arrow key
        Player - Player 10 (Light Blue) Releases the Left Arrow key
    Conditions
    Actions
        Set TurningLeft[(Player number of (Triggering player))] = False
Do this for right, down, and up too, and make sure the boolean variables are arrays of size (number of players you can have). then have a trigger that runs every .25 seconds or so (not much less, or it will lag) that moves the units according to which booleans are true.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top