# Flags management (/start/flags)



Pixi’VN provides functions to manage "game flags". Game flags are boolean values used to control the flow of the game or to store other boolean value in the game storage.

This mechanic has much less impact on save size than using the normal storage, so it is recommended to use flags for boolean values that are frequently changed.

## Set [#set]

To set a flag, use the [`storage.flags.set`](/jsdoc/pixi-vn/index/interfaces/StorageFlagsInterface#set) function.

```ts
import { storage } from "@drincs/pixi-vn";

storage.flags.set("flag1", true);
```

## Get [#get]

To get a flag, use the [`storage.flags.get`](/jsdoc/pixi-vn/index/interfaces/StorageFlagsInterface#get) function.

```ts
import { storage } from "@drincs/pixi-vn";

const flag1 = storage.flags.get("flag1");
```
