pau-tomas / gb-studio-plugins

A set of experimental plugins for GB Studio
MIT License
101 stars 10 forks source link

GB Studio 4.1 - Plugin Pak

A set of experimental plugins for GB Studio 4.1. Use them at your own risk :)

[!NOTE] A handful of previously available event plugins are now deprecated as their functionlity is part of GB Studio. See the list below.

Dialogue & Menus

Draw Lifebar

Draw a (life/power/mana)bar to a specified position on the overlay.

Example project

Note: The tileset will load in tile 128 of VRAM (right after the sprites block). This allows combining the lifebar rendering with using Draw Text on the overlay. The VRAM index can be changed by editing the const VRAM_BASE_START_TILE = 128 line in the plugin file.

Draw Lifebar Draw Lifebar

Display Advanced Menu

Display a menu of multiple options and set the specified variable to the value of the chosen option.

Menu option position and navigation order can be set for each item in the Items tab. The dialogue box size and the opening and closing direction can be set in the Layout tab.

There's no maximum character length per item, but the total amount of displayed characters is limited to by the number of tiles reserved for UI text (52 for non-color mode).

Note: The event can get very long when there's a lot of items.

Advanced Menu Items Advanced Menu Screenshot

Advanced Menu Layout

Real Time Clock

A set of events that give access to the Real Time Clock functionality present in some GB cartridges.

Note: Cartridge type needs to be set to MBC3 in the project Settings, for RTC to work.

Set Clock Time

Set the values of the real time clock fields with a number or the value of a variable.

Set Clock Time

Store Clock Time In Variables

Store the current time in one variable for each value.

Store Clock Time In Variables

Start Clock

Starts the real time clock.

Start Clock

Stop Clock

Stops the real time clock.

Stop Clock

Player Fields

Store Player Field In Variable

Store the value of a Player Field in a variable.

The available fields are:

Store Player Field In Variable

Player Field Update

Change the value of a Player Field.

The available fields are:

Player Field Update

Camera

Store Camera Field In Variable

Store the value of a Camera Field in a variable.

The available fields are:

Store Camera Field In Variable

Screen

Smooth Fade

Color Mode Only

Fade some or all of the current scene's background or sprites palettes to or from a white or black screen, interpolating the color values for a smooth fade.

Player Field Update

β Plugins

The plugins in this category are even more experimental than the ones above and might change in the future.

How to Install

Drop the plugins folder in your project. All the above events will be available from the Add Event button.

More plugins from other authors:

Deprecated Plugin Events

The following event plugins aren't available as part of the Plugin Pak anymore as their functionality has been added to GB Studio natively.

Since 4.1:

Since 4.0:

If you're not using GB Studio 4.1 or above, you can still find the above here.