I've had this bug for years and finally isolated the problem. In short, ordering (via trigger) a flying unit to move will sometimes create a jittery flying pattern...like the animation is resetting every .1 seconds or something until it reaches its point. I've uploaded a map that illustrates the bug:
http://www.hiveworkshop.com/forums/pastebin_data/qwcj45/_files/Jitter bug.w3x
Here's are its only triggers. The map has 1 gryphon for player 1 in the center:
If you press the up or down arrows, the gryphon moves north or south appropriately.
If you press the west arrow ONCE, the gryphon flies to the west.
If you press the west arrow TWICE the gryphon jitters and animates wrong.
Ordering the gryphon to go east or west more than once breaks the animation even though they go in the right direction. I know it doesn't have to be exactly 0 and 180 degrees (in my main map it's not), but it always breaks when ordered twice in those directions.
Here's a list of potential fixes that do NOT work:
- ordering unit to stop before new order to move.
- pausing and unpausing unit
- ordering unit to move to it's own location before new order to move.
- reseting unit's animation
- ignoring guard position
- switching models
- switching units
- changing unit max pitch and rotation
I'm having a hell of a time with this, and it really ruins parts of my map. Can anyone think of why this happens and how to fix it?
http://www.hiveworkshop.com/forums/pastebin_data/qwcj45/_files/Jitter bug.w3x
Here's are its only triggers. The map has 1 gryphon for player 1 in the center:
-
intialize
-
Events
- Map initialization
- Conditions
-
Actions
- Camera - Pan camera for Player 1 (Red) to (Position of Gryphon Rider 0000 <gen>) over 0.00 seconds
- Camera - Lock camera target for Player 1 (Red) to Gryphon Rider 0000 <gen>, offset by (0.00, 0.00) using Default rotation
- Set Ship = Gryphon Rider 0000 <gen>
- Game - Display to (All players) the text: Arrow keys order th...
- Wait 2.00 game-time seconds
- Game - Display to (All players) the text: BUG: Ordering it t...
-
Events
-
West
-
Events
- Player - Player 1 (Red) Presses the Left Arrow key
- Conditions
-
Actions
- Unit - Order Ship to Move To ((Position of Ship) offset by 500.00 towards 180.00 degrees)
-
Events
-
East
-
Events
- Player - Player 1 (Red) Presses the Right Arrow key
- Conditions
-
Actions
- Unit - Order Ship to Right-Click ((Position of Ship) offset by 500.00 towards 0.00 degrees)
-
Events
-
North
-
Events
- Player - Player 1 (Red) Presses the Up Arrow key
- Conditions
-
Actions
- Unit - Order Ship to Move To ((Position of Ship) offset by 500.00 towards 90.00 degrees)
-
Events
-
South
-
Events
- Player - Player 1 (Red) Presses the Down Arrow key
- Conditions
-
Actions
- Unit - Order Ship to Move To ((Position of Ship) offset by 500.00 towards 270.00 degrees)
-
Events
If you press the up or down arrows, the gryphon moves north or south appropriately.
If you press the west arrow ONCE, the gryphon flies to the west.
If you press the west arrow TWICE the gryphon jitters and animates wrong.
Ordering the gryphon to go east or west more than once breaks the animation even though they go in the right direction. I know it doesn't have to be exactly 0 and 180 degrees (in my main map it's not), but it always breaks when ordered twice in those directions.
Here's a list of potential fixes that do NOT work:
- ordering unit to stop before new order to move.
- pausing and unpausing unit
- ordering unit to move to it's own location before new order to move.
- reseting unit's animation
- ignoring guard position
- switching models
- switching units
- changing unit max pitch and rotation
I'm having a hell of a time with this, and it really ruins parts of my map. Can anyone think of why this happens and how to fix it?