Layer Swayer - Gentle ambient block movement
Posted: Tue May 03, 2022 2:27 pm
https://drive.google.com/file/d/1nSxmD7 ... sp=sharing
Little thing I made for the Ionocannon by Waddle. A NPC that searches for blocks it's attached to (limited to 200 pixels in every direction) and moves them gently in the breeze. When you stand on it, it moves to the bottom.
This NPC creates a new layer and moves all attached blocks onto it, so there is a self-imposed limit. In order for the Layer Swayer to work, you must not use over 200 layers in your level by default, since it will allocate 50 for its own use.
Because Layer Swayer will re-use layers, there's also a limit of not having more than 50 of these per screen. And it could get messy in multiplayer. So word of warning on that.
You can also forgo the layer generation by putting the NPC and its attached blocks on a self-made layer. Then you can also easily include blocks father than 200 pixels apart. Or BGOs and NPCs.

Little thing I made for the Ionocannon by Waddle. A NPC that searches for blocks it's attached to (limited to 200 pixels in every direction) and moves them gently in the breeze. When you stand on it, it moves to the bottom.
This NPC creates a new layer and moves all attached blocks onto it, so there is a self-imposed limit. In order for the Layer Swayer to work, you must not use over 200 layers in your level by default, since it will allocate 50 for its own use.
Because Layer Swayer will re-use layers, there's also a limit of not having more than 50 of these per screen. And it could get messy in multiplayer. So word of warning on that.
You can also forgo the layer generation by putting the NPC and its attached blocks on a self-made layer. Then you can also easily include blocks father than 200 pixels apart. Or BGOs and NPCs.
