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 eitherorThough, 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...
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)
Code:
easyliquids.moveLiquid(0, {targetblockheight=9,blockheight=12,movetime=3,easyliquids.EASING_INOUTSINE,goback=true,waittime=1})
Statistics: Posted by Rixitic — Tue Aug 13, 2024 4:47 pm