How to stop an event-circuit?

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

HVMetal
Snifit
Snifit
Posts: 234
Joined: Tue Dec 29, 2015 9:44 am

How to stop an event-circuit?

Postby HVMetal » Tue Jan 05, 2016 7:12 am

Hello!
Can somebody tell me please how can an event circuit be stopped?

bossedit8
Banned
Posts: 6838
Joined: Fri Dec 20, 2013 12:35 pm
Contact:

Re: How to stop an event-circuit?

Postby bossedit8 » Tue Jan 05, 2016 7:35 am

Looping events can't be stopped at all in the default SMBX!

RudeGuy
Bowser
Bowser
Posts: 4994
Joined: Fri Dec 27, 2013 7:36 am
Flair: local guy

Re: How to stop an event-circuit?

Postby RudeGuy » Tue Jan 05, 2016 7:35 am

It's impossible with vanilla SMBX. You can do it with Lua but I don't know how.

HVMetal
Snifit
Snifit
Posts: 234
Joined: Tue Dec 29, 2015 9:44 am

Re: How to stop an event-circuit?

Postby HVMetal » Tue Jan 05, 2016 7:48 am

bossedit8 wrote:Looping events can't be stopped at all in the default SMBX!
Ok, thanks!

HVMetal
Snifit
Snifit
Posts: 234
Joined: Tue Dec 29, 2015 9:44 am

Re: How to stop an event-circuit?

Postby HVMetal » Tue Jan 05, 2016 7:49 am

RudeGuy07 wrote:It's impossible with vanilla SMBX. You can do it with Lua but I don't know how.
And thank you too

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9890
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: How to stop an event-circuit?

Postby Emral » Tue Jan 05, 2016 11:15 am

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


Return to “Help and Support”

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari