Re: Need help with lua? - LunaLua General Help
Posted: Thu Sep 26, 2019 9:32 am
I was trying to give the player more chances to attack a moving horizontal boss if the player misses the stomp, by making the section level warp during an event with Lua.
Here is my code:
This doesn't work, I think that the event didn't change the section setting though.
Here is my code:
Code: Select all
function onEvent(eventName)
if eventName == "attack" then
Section.isLevelWarp = true
end
if eventName == "defeat"
Section.isLevelWarp = false
end
end