Page 1 of 1
How to stop an event-circuit?
Posted: Tue Jan 05, 2016 7:12 am
by HVMetal
Hello!
Can somebody tell me please how can an event circuit be stopped?
Re: How to stop an event-circuit?
Posted: Tue Jan 05, 2016 7:35 am
by bossedit8
Looping events can't be stopped at all in the default SMBX!
Re: How to stop an event-circuit?
Posted: Tue Jan 05, 2016 7:35 am
by RudeGuy
It's impossible with vanilla SMBX. You can do it with Lua but I don't know how.
Re: How to stop an event-circuit?
Posted: Tue Jan 05, 2016 7:48 am
by HVMetal
bossedit8 wrote:Looping events can't be stopped at all in the default SMBX!
Ok, thanks!
Re: How to stop an event-circuit?
Posted: Tue Jan 05, 2016 7:49 am
by HVMetal
RudeGuy07 wrote:It's impossible with vanilla SMBX. You can do it with Lua but I don't know how.
And thank you too
Re: How to stop an event-circuit?
Posted: Tue Jan 05, 2016 11:15 am
by Emral
With LunaLua you'll make it look like a loop, while it really gets interrupted for a frame to check if it should loop again:
local looping = true
function onEvent(calledEvent)
if calledEvent == "startLoop" and looping == true then
triggerEvent("actuallyLoop")
end
if calledEvent == "cancelLoop" then
looping = false
end
end