Scene

Type    

class

[gl]

Inheritance

Scene ⟶ Object


Overview

Create new scene from file


See also 

tutorial on scene



Overview


  Creates scene object from file.



Syntax


The template to create new scene can be download by the command


> getfile 'scene.lua'


in the luasopia console. 



  Scene class has the following static method.


Scene.goto(fileName [, transitionType [,transitionTime] ])


Here, transtionType can be


  • 'fade'

  • 'slideLeft'

  • 'slideRight'

  • 'rotateLeft'

  • 'rotateRight'


and the transitionTime is a number in the millisecond.



Examples



Scene.goto('intro')


Scene.goto('scene2', 'rotateLeft')


Scene.goto('scene1', 'fade', 500)


댓글 없음:

댓글 쓰기