Dynamically Create Texts In Code For Purpose Of Staff Scroll Screen?

Hi,

This is what we have now:
http://fallenangelsoftware.com/stuff/files/RedLightRacer/HTML5/js-web/RedLightRacer/index.html

Next task is the [About] screen staff scroll.
Staff scroll has a lot of single line texts.
How can I create in code a lot of different texts?
(the [About] screen will scroll from bottom to top all the texts)

Let me know, thanks!

J.

You should seriously consider reading the entire docs one time through at least because so many of your questions would be answered by knowing what features are available.

You can either use labels or create new text nodes.

https://www.defold.com/ref/gui/#gui.new_text_node:pos-text in particular is for creating new text nodes.

You can maintain a table of such nodes created.

local text_nodes = {}
table.insert(text_nodes, gui.new_text_node(vmath.vector3(200, 100, 0), "Made By: "))
5 Likes