Class: BHell_Sprite

BHell.BHell_Sprite()

new BHell_Sprite()

Sprite class for the bullet hell engine. Similar to a character sprite.

Source:

Methods

initialize(sprite, index, direction, frame, animated, animationSpeed)

Constructor. Centers the coordinates to the sprite's center.

Parameters:
Name Type Description
sprite

Charset image.

index

Charset index, ignored if the charset is "Big" (filename starting with a $).

direction

Charset direction (uses RPG Maker's 2-4-6-8 convention).

frame

Initial frame index (0-2).

animated

If true animates the sprite by cycling the frames in the order 0-1-2-1.

animationSpeed

Number of updates required for frame change.

Source:

update()

Updates the sprite on screen. Changes the displayed frame every this.animationSpeed calls.

Source:

updateCharacterFrame()

Updates the charset frame, calculating the correct offsets.

Source: