Quantcast
Channel: Super Mario Bros. X Forums
Viewing all articles
Browse latest Browse all 2628

LunaLua • Re: easyliquids.lua - Flood your levels with code!

$
0
0
It would be pretty handy to have some simple means of changing the target[block]height/goback behavior after creating the liquids. As it is now, if one wants to do something like the SMW behavior or make an constantly-oscillating tide that changes at different points in the level they need to use either setLiquidY() or moveLiquid() calls in looping routines.

Perhaps moveLiquid() could be expanded so it could alternatively process the second argument as named args? So you could have either

Code:

easyliquids.moveLiquid(0, 12*32, 3, easyliquids.EASING_INOUTSINE, 1)
or

Code:

easyliquids.moveLiquid(0, {targetblockheight=9,blockheight=12,movetime=3,easyliquids.EASING_INOUTSINE,goback=true,waittime=1})
Though, that would be a bit awkward in that waittime would be used in a different sense from the non-named equivalent, along with being ambiguous on whether [block]height or target[block]height would be the initial result of the moveLiquid call...

Statistics: Posted by Rixitic — Tue Aug 13, 2024 4:47 pm



Viewing all articles
Browse latest Browse all 2628

Trending Articles