poof.lua: One-by-one layer transitions [v0.2a]
Posted: Sat Nov 26, 2016 4:22 pm
Inspired by SMW overworld transitions, and surprisingly not by Yoshi's Island, I give you poof.lua, for use in levels, in-engine level selects, or wherever else:
https://gist.github.com/The0x539/d8b617 ... 31ce2a4362
Use is as simple as:
Delay between blocks, as well as whether time is frozen or player input is just locked, can be specified by optional second and third arguments.
Though it's quite general-purpose, its intended purpose was for SMW-style transitions in SMBX platformer level selects, as seen in this proof of concept:
https://ptpb.pw/-sNM.ziphttps://ptpb.pw/EFl4.zip
Roadmap?
https://gist.github.com/The0x539/d8b617 ... 31ce2a4362
Use is as simple as:
Code: Select all
local poof = API.load("poof")
function toggleLayer()
poof.startPoof("layer")
end
Though it's quite general-purpose, its intended purpose was for SMW-style transitions in SMBX platformer level selects, as seen in this proof of concept:
https://ptpb.pw/-sNM.ziphttps://ptpb.pw/EFl4.zip
Roadmap?
- Poof queue, so calling poof.startPoof() twice in a row poofs the layers sequentially, and without stopping at the player position
- Particle effects
- 2-player support
- Options for different camera behavior, teleport to be centered on each tile, don't move at all, move gradually if the structure is bigger than the camera
- Different ways of sorting the blocks, maybe even manual sorting for particularly fancy stuff