Layer Swayer - Gentle ambient block movement

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9865
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Layer Swayer - Gentle ambient block movement

Postby Emral » 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.

Image

MrDoubleA
Ripper II
Ripper II
Posts: 394
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?

Re: Layer Swayer - Gentle ambient block movement

Postby MrDoubleA » Tue May 03, 2022 4:33 pm

Saw this a while ago and it always interested me. Glad to see it finally released!


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 4 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari