Difference between revisions of "FF7/WorldMap Module/Script/Opcodes/308"
< FF7 | WorldMap Module | Script | Opcodes
Jump to navigation
Jump to search
my_wiki>Aali (Created page with "* Opcode: '''0x308''' * Name: set active entity mesh coordinates * Two-word opcode: No ==== Parameters ==== {| border="1" cellspacing="1" cellpadding="3" style="border: 1px ...") |
my_wiki>Aali |
||
Line 22: | Line 22: | ||
Sets the active entity's mesh coordinates, X is a number between 0 and 36 (for 9 MAP blocks with 4 meshes each) while Y is a number between 0 and 28 (for 7 MAP blocks with 4 meshes each). | Sets the active entity's mesh coordinates, X is a number between 0 and 36 (for 9 MAP blocks with 4 meshes each) while Y is a number between 0 and 28 (for 7 MAP blocks with 4 meshes each). | ||
+ | |||
+ | World coordinates can be calculated as mesh coordinates << 13 + coordinates in mesh or mesh coordinates << 13 | coordinates in mesh (coordinates in mesh can be thought of as the lower 13 bits while mesh coordinates are the upper bits). |
Revision as of 17:28, 5 August 2014
- Opcode: 0x308
- Name: set active entity mesh coordinates
- Two-word opcode: No
Parameters
Location | Name | Description |
---|---|---|
Stack | X | Mesh X coordinate |
Stack | Y | Mesh Y coordinate |
Notes
Sets the active entity's mesh coordinates, X is a number between 0 and 36 (for 9 MAP blocks with 4 meshes each) while Y is a number between 0 and 28 (for 7 MAP blocks with 4 meshes each).
World coordinates can be calculated as mesh coordinates << 13 + coordinates in mesh or mesh coordinates << 13 | coordinates in mesh (coordinates in mesh can be thought of as the lower 13 bits while mesh coordinates are the upper bits).