Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Sprites

Sterophonick edited this page Nov 1, 2019 · 6 revisions

hrt_CopyOAM

Usage

Designed for Copying the sprite data in IWRAM to the OAM.

Arguments

None

Return

None

hrt_SetOBJX

Usage

Used to move a Sprite along the X axis.

Arguments

spr

The sprite ID of the object to be moved

pos

The X position

Return

None

hrt_SetOBJY

Usage

Used to move a Sprite along the Y axis.

Arguments

spr

The sprite ID of the object to be moved

pos

The Y position

Return

None

hrt_SetOBJXY

Usage

Used to move a sprite anywhere on screen

Arguments

spr

The sprite ID of the object to be moved

pos

The Y position

Return

None

hrt_CreateOBJ

Usage

Used to create a sprite with any flags

Arguments

spr

The sprite ID

stx

The starting X Position

sty

The starting Y position

size

The size of the sprite

affine

Enables/Disables rotation and scaling

hflip

Enables/Disables horizontal flipping

vflip

Enables/Disables vertical flipping

shape

Sets the shape of the object

dblsize

Enables/Disables Double size. Set when enabling affine

mosaic

Enables/Disables mosaic

pal

Sets the palette number. No effect when color is set to 1.

color

Sets the color mode to 16 or 256.

mode

???

priority

sets the OBJ layer

offset

sets the starting graphics tile

Return

none

hrt_AffineOBJ

Usage

Used to scale and rotate a sprite

Arguments

rotDataIndex

the sprite ID

angle

the angle of rotation

x_scale

the horizontal stretch

y_scale

the vertical stretch

Return

None