rokubrightscript

How could I use roSGScreen for open a new view? - Roku


Hi community I'm making an Roku app and I need to create window instance for can surf between it. The develop is inside the main fuction because is the only way that it works.

Also I need to create some moduls that it not depend of the main, I have been investigating and is nesessary the nodes use and task.

This's my code I wonder if you have some example using nodes and task

enter code here

     screen = CreateObject("roSGScreen")
     m.port = CreateObject("roMessagePort")
     screen.setMessagePort(m.port)
     scene = screen.CreateScene("PlayerScreen")
     screen.show()

Solution

  • Before jumping into development, I will suggest to go through documentation-

    https://developer.roku.com/en-gb/docs/developer-program/getting-started/roku-dev-prog.md

    You can find some sample code here-

    https://github.com/rokudev