
Ever wished that Sphere's graphical engine could act a bit more like the old text consoles? This may well be what you're looking for!
The Sphere console script can display and accept text input sequentially. Could be handy if you want to make a simple text adventure in Sphere.
Put tnb_console.js in your scripts/ directory, and include it in your main script:
RequireScript("tnb_console.js");
Create a new Console object:
var funky_console = new Console();
For output, call the Console.print method:
funky_console.print("I am some output text.");
You can display the console with the Console.render method:
if (funky_console.needUpdate) { funky_console.render(); FlipScreen(); }
For input, you can provide a default value if you want:
var user_name = funky_console.input("Bob");