Skip to content

ganiobject: members

16 implemented, 0 reserved. Entries are sorted by name.

ganiobject.alpha: number

Runs on: client only. Origin: compatibility. Since: M12. Playground: no.

Opacity, 0 to 1. It changes only what this client draws.

this.alpha = 0.5;

Specification: player-api.md§3.1.

ganiobject.aniparams: string

Runs on: client only. Origin: compatibility. Since: M12. Playground: no. read-only.

The parameters of the gani being played, as a comma separated list.

echo(this.aniparams);

Specification: player-api.md§3.1.

ganiobject.anistep: number

Runs on: client only. Origin: compatibility. Since: M12. Playground: no. read-only.

The number of the frame being drawn.

echo(this.anistep);

Specification: player-api.md§3.1.

ganiobject.attachedtoobject: npc

Runs on: client only. Origin: compatibility. Since: M12. Playground: no. read-only.

The NPC the player rides along with, or empty.

echo(this.attachedtoobject);

Specification: player-api.md§3.1.

ganiobject.attachid: number

Runs on: client only. Origin: compatibility. Since: M12. Playground: no. read-only.

The id of the NPC the player rides along with, or -1.

echo(this.attachid);

Specification: player-api.md§3.1.

ganiobject.attachtype: number

Runs on: client only. Origin: compatibility. Since: M12. Playground: no. read-only.

One when the object is attached to an NPC, zero otherwise.

echo(this.attachtype);

Specification: player-api.md§3.1.

ganiobject.blue: number

Runs on: client only. Origin: compatibility. Since: M12. Playground: no.

Blue part of the tint, 0 to 1. It changes only what this client draws.

this.blue = 0.5;

Specification: player-api.md§3.1.

ganiobject.green: number

Runs on: client only. Origin: compatibility. Since: M12. Playground: no.

Green part of the tint, 0 to 1. It changes only what this client draws.

this.green = 0.5;

Specification: player-api.md§3.1.

ganiobject.mode: number

Runs on: client only. Origin: compatibility. Since: M12. Playground: no.

How the object blends: 0 add, 1 alpha, 2 subtract, 3 multiply; any other number selects 0.

this.mode = 0;

Specification: player-api.md§3.1.

ganiobject.red: number

Runs on: client only. Origin: compatibility. Since: M12. Playground: no.

Red part of the tint, 0 to 1. It changes only what this client draws.

this.red = 0.5;

Specification: player-api.md§3.1.

ganiobject.rotation: number

Runs on: client only. Origin: compatibility. Since: M12. Playground: no.

Rotation of the drawing in radians.

this.rotation = 1.57;

Specification: player-api.md§3.1.

ganiobject.rotationcenter: string

Runs on: client only. Origin: compatibility. Since: M12. Playground: no.

The turning point in pixels from the position of the object, as a list string; it can be assigned an array of two numbers.

this.rotationcenter = {24, 24};

Specification: player-api.md§3.1.

ganiobject.stretchx: number

Runs on: client only. Origin: compatibility. Since: M12. Playground: no.

Scale of the horizontal axis.

this.stretchx = 2;

Specification: player-api.md§3.1.

ganiobject.stretchy: number

Runs on: client only. Origin: compatibility. Since: M12. Playground: no.

Scale of the vertical axis.

this.stretchy = 2;

Specification: player-api.md§3.1.

ganiobject.useowncenter: boolean

Runs on: client only. Origin: compatibility. Since: M12. Playground: no.

When true the object turns and scales about rotationcenter instead of the middle of its drawing.

this.useowncenter = true;

Specification: player-api.md§3.1.

ganiobject.zoom: number

Runs on: client only. Origin: compatibility. Since: M12. Playground: no.

Scale of the whole drawing.

this.zoom = 2;

Specification: player-api.md§3.1.

Engine version 0.1.0. Built 2026-11-18.