Is eventu now able to handle multiple events happening on the same tick?Hoeloe wrote:Alternatively, you can use the eventu library to do most of the scheduling stuff for you.S1eth wrote:7NameSam wrote:How do I make a layer move back and forth using LUA?You may want to put this into some if block, that uses an incremental counter for each frame, and reset it when the event happens (or use modulo).
Code: Select all
local myLayer = findlayer("TheNameYouGaveYourLayerInSMBX"); myLayer.speedX = someNumber; myLayer.speedY = someNumber;
Set to speed to e.g. +2 to make it move to the right, and another function to set the speed to -2 to make it move back.
For example, set it to move right at i==0, to move left at i==200, set i=0 at 400.
And in general, is there a well organized list of features added since v7? I feel like I have to look through all the forums to find those one at a time.