It looks like you're new here. If you want to get involved, click one of these buttons!
function SceneManager:changeScene(scene, duration, transition, ease, options) self.eventFilter = options and options.eventFilter if self.tweening then return false end if self.scene1 == nil then self.scene1 = self.scenes[scene].new(options and options.userData) self:addChild(self.scene1) dispatchEvent(self, "transitionBegin") dispatchEvent(self.scene1, "enterBegin") dispatchEvent(self, "transitionEnd") dispatchEvent(self.scene1, "enterEnd") return true end self.duration = duration self.transition = transition self.ease = ease or defaultEase self.scene2 = self.scenes[scene].new(options and options.userData) self.scene2:setVisible(false) self:addChild(self.scene2) self.time = 0 self.currentTimer = os.timer() self.tweening = true return true end |
if sceneManager:changeScene("play",1) then . -- it worked . else . -- it failed . end or self.countdown=self.countdown-1 if self.countdown==0 then if sceneManager:changeScene("bet",1)==false then self.countdown=1 end end |
Likes: ar2rsawseen, aditya
Comments
https://deluxepixel.com
But if you want I can give you access to the repo so you can apply any changes ?
Likes: SinisterSoft
https://deluxepixel.com
Likes: talis
https://deluxepixel.com