Arrow key movement issues (see inside)

THUNDERPOWER

New Member
Reaction score
1
I've recently begun work on an arrow key movement system, that works like this: when player presses Up, the unit will move forward; when a player presses Left, the unit will begin rotating on itself towards left.

The Problem
For whatever reason, when a player presses Left, the unit will begin pivoting which is all fine and dandy, but it will begin rotating by itself after a few seconds, which screws up the whole attack system. What's more is that the game will think the unit is still facing the way it was when it stopped rotating, causing big problems.

I've attached the map below. You may notice some of the triggers are disabled and the attack system does not work. This is for testing purposes. The triggers can be found under Controls > Movement.

http://www.mediafire.com/?x0myz12mndh
(Wouldn't let me attach)
 

Builder Bob

Live free or don't
Reaction score
249
From my own attempts on controling turning as well as unit position independent of each other, the method I had success with was by never giving the unit any orders. Control facing and position by triggers. Use blend when setting position, and some low number like 0.1 when controling turning.
 

Builder Bob

Live free or don't
Reaction score
249
I couldn't figure out how you want the movement to work out, but here is my example anyway
 

Attachments

  • ShipTest01.zip
    16.3 KB · Views: 260

THUNDERPOWER

New Member
Reaction score
1
Your map has the same problem mine has.

Open your map, and try pressing the right arrow key for a few seconds, then let go off it and wait about 10 seconds while keeping your eyes on the Phoenix and see what happens: it will rotate by itself.
 

Arkless

New Member
Reaction score
31
Your map has the same problem mine has.

Open your map, and try pressing the right arrow key for a few seconds, then let go off it and wait about 10 seconds while keeping your eyes on the Phoenix and see what happens: it will rotate by itself.

There was already a topic about this, sry, I don't quite remember everything... but it has something todo with the idle animation of the phoenix (I think).
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
There was already a topic about this, sry, I don't quite remember everything... but it has something todo with the idle animation of the phoenix (I think).

I tried reproducing his issue and failed to do so, I saw nothing happen.
 

THUNDERPOWER

New Member
Reaction score
1
I tried reproducing his issue and failed to do so, I saw nothing happen.

Alright, try this:
1) Open my map.
2) Test it.
3) Select the Phoenix.
4) Press Left for 7-10 seconds (make sure it's actual seconds).
5) Wait about 3 seconds.
6) Press Left till the Phoenix starts rotating, then once it does, keep holding Left for about 2 seconds and let go.
7) Keep your eyes on the Phoenix for about 60 seconds (again, REAL seconds).

This should be a sure-fire way to reproduce the problem.
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Alright, try this:
1) Open my map.
2) Test it.
3) Select the Phoenix.
4) Press Left for 7-10 seconds (make sure it's actual seconds).
5) Wait about 3 seconds.
6) Press Left till the Phoenix starts rotating, then once it does, keep holding Left for about 2 seconds and let go.
7) Keep your eyes on the Phoenix for about 60 seconds (again, REAL seconds).

This should be a sure-fire way to reproduce the problem.

That's almost exactly what I did, nothing happened...
 

Dan

The New Helper.Net gives me great Anxiety... o.O;;
Reaction score
160
Is your unit supposed to stop obeying the arrow keys randomly and go whichever direction it feels like going? That, and either your right arrow key isn't detecting keypresses or my keyboard is shot. I think your problems are rooted a bit deeper than everyone previously thought. Let's start over.
 

Arkless

New Member
Reaction score
31
I'm at a loss. I can't reproduce what you're describing.

place like 20 of em on a map, make em move to target point and wait... after a few seconds (with bad luck maybe 1 minute or two :p) you will see they dont face the right direction anymore... thats some kind of idle animation for em
 

Builder Bob

Live free or don't
Reaction score
249
place like 20 of em on a map, make em move to target point and wait... after a few seconds (with bad luck maybe 1 minute or two :p) you will see they dont face the right direction anymore... thats some kind of idle animation for em

Ok, if that is the case, then the problem does not lie anywhere in the example code I posted at least. It lies in the unit itself.

An easy fix would be to just create a new unit from the grounds up without basing it on any existing units at all. We all know starcraft units turn a bit here and there to make them look less static. Exactly where in the data editor that is specified I don't know from the top of my head, but I'm pretty sure it won't be default for a fresh unit.

Edit: I managed to reproduce what the OP is describing with the Phoenix. Which units have you seen it happen with?
 

Strilanc

Veteran Scripter
Reaction score
42
This should still happen even in a normal map. It's just the unit fidgeting. You've probably noticed it before, eg. when tanks rotate their turrets when idle.

There's a player flag to turn off the fidgeting flag for all units per player (using a trigger) and you can probably do it in the data editor somehow.
 

Builder Bob

Live free or don't
Reaction score
249
Yes, it is. You can find a turret data entry called Phoenix (unnamed). This is what's causing problems for you. I'm going to advice you to create a unit from scratch, but if you still want to use the original Phoenix unit, you can modify this data entry as follows:

Edit the field called 'Fidget +'

Set 'Turn Angle' to 0

There. Your phoenix won't turn on it's own anymore.
 

THUNDERPOWER

New Member
Reaction score
1
Yes, it is. You can find a turret data entry called Phoenix (unnamed). This is what's causing problems for you. I'm going to advice you to create a unit from scratch, but if you still want to use the original Phoenix unit, you can modify this data entry as follows:

Edit the field called 'Fidget +'

Set 'Turn Angle' to 0

There. Your phoenix won't turn on it's own anymore.

Thank you so much! Have my measly reps lol.
Also, if anyone else is having the same issue, deleting all the 'Fidget" animations works too.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top