Difference between revisions of "FF7/Field/Script/Opcodes/2C BGPDH"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
(No difference)

Revision as of 02:43, 6 February 2007

  • Opcode: 0x2C
  • Short name: BGPDH
  • Long name: Background Depth

Memory layout

0x2C B / 0 L D

Arguments

  • const Bit[4] B: Bank to retrieve value for D, or zero if D is specified as a literal.
  • const Bit[4] 0: Four zero bits.
  • const UByte L: ID number of the layer to manipulate.
  • const Short D: Z-depth of the specified layer, or the address to find D if B is non-zero.

Description

Sets the Z-depth for the extra background layer specified by L. This opcode will only set the depth of those extra layers above the standard background and foreground layers (0/1, respectively), and so should be an argument of 2 or greater.