SceneManager enterEnd
From GiderosMobile
Revision as of 04:01, 26 March 2020 by MoKaLux (talk | contribs) (Created page with "'''<translate>Available since</translate>:''' Gideros 2020.2<br/> '''<translate>Value</translate>:''' "enterEnd"<br/> '''<translate>Defined by</translate>:''' SceneManager...")
Available since: Gideros 2020.2
Value: "enterEnd"
Defined by: SceneManager
Description
This event is dispatched on Transition In End.
Example
enterEnd
Level01 = Core.class(Sprite)
function Level01:init()
-- LISTENERS
self:addEventListener("enterBegin", self.onTransitionInBegin, self)
self:addEventListener("enterEnd", self.onTransitionInEnd, self)
self:addEventListener("exitBegin", self.onTransitionOutBegin, self)
self:addEventListener("exitEnd", self.onTransitionOutEnd, self)
end
-- GAME LOOP
function Level01:onEnterFrame(e)
end
-- EVENT LISTENERS
function Level01:onTransitionInBegin()
self:addEventListener(Event.ENTER_FRAME, self.onEnterFrame, self)
end
function Level01:onTransitionInEnd()
self:myKeysPressed()
end
function Level01:onTransitionOutBegin()
self:removeEventListener(Event.ENTER_FRAME, self.onEnterFrame, self)
end
function Level01:onTransitionOutEnd()
end
Event properties