Changes

Jump to navigation Jump to search

FF7/Field/Script/Opcodes/64 SCR2D

1,055 bytes added, 01:30, 15 September 2006
no edit summary
* Opcode: '''0x64'''
* Short name: '''SCR2D'''
* Long name: Scroll 2D

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x64
! width="50" | ''B1 / B2''
! width="80" | ''X''
! width="80" | ''Y''
|}

==== Arguments ====

* '''const Bit[4]''' ''B1'': Source bank 1, or zero if ''X'' is set as a constant value.
* '''const Bit[4]''' ''B2'': Source bank 2, or zero if ''Y'' is set as a constant value.
* '''const Short''' ''X'': X-coordinate to scroll to, or address to find ''X'' if ''B1'' is non-zero.
* '''const Short''' ''Y'': Y-coordinate to scroll to, or address to find ''Y'' if ''B2'' is non-zero.

==== Description ====

Instantaneously scrolls the current view to the coordinates found in the arguments (or the values found at the addresses if memory banks and address are specified). The move to the new coordinates is instant; variants exist for [[FF7/Field/Script/Opcodes/68 SCR2DL|linear]] and [[FF7/Field/Script/Opcodes/66 SCR2DC|smooth]] scrolling.

Navigation menu