Just wondering how do i use the print (im new too coding) because im trying to make an input to make just text appear saying “hello world!” as a test to understand lua more.
1 Like
When running a game from the Defold editor, the Lua print statement is used for debugging. The output from it appears in the console window of the editor (and not inside the game). The syntax is:
print("hello world!")
To get this to print to the console add it to a .script file; for example from within the side scroller tutorial (which can be found within the launch menu of the editor).
1 Like