Difference between revisions of "SpriteMove"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "= {3B} {{IE_3B}} = Move a unit around in various possible ways. See Also: {11} {{IE_11}}{6F} {{IE_6F}} ― Event_Ins...")
 
Line 1: Line 1:
 
= {3B} {{IE_3B}} =
 
= {3B} {{IE_3B}} =
Move a unit around in various possible ways.
+
{{IE_3B_ex}}
 +
 
 +
{{IE_3B_desc}}
  
  
Line 9: Line 11:
  
  
== Unknown 1 : Byte (hex) ==
+
{{x00}}
Always x00.
 
  
  

Revision as of 13:53, 3 January 2014

{3B} SpriteMove

SpriteMove(xID,x00,+XXXXX,+ZZZZZ,+YYYYY,xMV,x??,+TIMER)

Moves Target Unit to specified coordinates relative to its starting position, ignoring the field and the units statistics such as Jump.


See Also: {11} UnitAnim{6F} WaitSpriteMove{E5} WaitForInstruction


Unit ID : Byte (hex)

ID of the unit specified in the ENTD.


x00 : Byte (hex)

This value is always set to x00 in the original game; it probably doesn't have a function.


Y movement : Half-Word (signed)

Destination in Y for the assigned unit based on current location.


Z movement : Half-Word (signed)

Destination in Z for the assigned unit based on current location.


X movement : Half-Word (signed)

Destination in X for the assigned unit based on current location.


Movement Type : Byte (hex)

  • x00 = Normal
  • x01 = Decelerate (end)
  • x02 = Accelerate (start) & Decelerate (end)
  • x03 = Accelerate (start)


Unknown 2 : Byte (hex)

  • x01 : ???
  • x02 : ???
  • x04 : ???
  • x08 : ???


Time : Half-Word (signed)

Determines the time needed for the unit to reach destination in 1/60th of seconds

  • +00060 = 1 second
  • +00180 = 3 seconds
  • +00900 = 15 seconds