
Some tech I made for Gilgamesh's Terrifying Rotating Slaboratory. I forgot to polish and release the code at the time, but now here it is!
Features:
- arbitrary character and powerup support
- customizable tint
- a spawner trigger npc where the interval and number of clones can be configured
- sound effects (replacable of course)
Does not feature:
- multiplayer support
- mount rendering
- irregular spawn intervals
How to use:
The cosmic clones library is automatically loaded as soon as you use the trigger NPC.
In this scenario, you are able to adjust cosmicclones.tint (a color) to change the tint applied to the player sheet when drawing clones.
If you wish to forego the trigger NPC, you will need to load the library via a require-call in your level or episode lua.
To control the spawn and death of clone sequences (when not using the spawner), use cc.activate (line 78) and cc.deactivate (line 91)