It is also used in some levels to obtain ingredients, and is reset when finishing or exiting a level. The costumes are necessary in order to complete or access some levels.
In the context of the game, it serves as a tool for acquiring necessary items in specific stages, and is reset after each stage completion or exit. Furthermore, certain costumes are essential for progressing through or accessing certain levels.