2DWorlds Forums
I know the scripting is lua, but - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13)
+--- Thread: I know the scripting is lua, but (/showthread.php?tid=1228)



I know the scripting is lua, but - Asai - 02-06-2011

Why are there different words like sleep instead of wait. What is the new format?


RE: I know the scripting is lua, but - Jacob__mybb_import1 - 02-06-2011

sleep() is the standard name for a function that waits a certain number of seconds. wait() in Java means that the current thread will wait until another thread tells it to continue.

Lua is just a syntax pattern; the details of how you use it depends on which application you are scripting for.