A Coppercube behavior to make a 2D overlay text editable and allow the user to type inside with the help of a keyboard.
Just attach this behavior to a 2D overlay to make that overlay editable. You can also store the text as a value for the variable specified inside the behavior property. Can change the default text cursor "|" to a custom text inside the behavior. Use mouse left click during gameplay to toggle editing ON or OFF. Use special variable "#edit.nodeName" with value "true" or "false", here nodeName is the name of the overlay you want to edit. This variable can be used with when a key is pressed to do something behavior to make the overlay editable.
Additionally, you can choose the option if you want the box to be editable by default when the game starts and doesn't require clicking on the overlay to edit, however if edit only once is not selected then you can edit it multiple times. You can also choose the option if you want the overlay to be editable only once or can be edited multiple times by simply checking and unchecking "EditOnlyOnce" button. If you have opted for editing the overlay once and still want to edit the overlay then you can always use the variable "#edit.nodeName" with a value of "true" to make the overlay editable again.
You can also save the text into a variable and can access it by defining the variable name in the behavior properties. You can also select an option if you want to make the overlay editable only when you trigger the variable "#edit.nodeName" to "true".
[Update version 1.2 ]
⚪CapsLock fucntionality has been added.
⚪Shift key can be used to while CapsLock is ON.
⚪Caret (Text Pointer) functionality has been improved Caret can be used as real caret use arrow keys to move caret left and right.
Installation instruction: Download .zip archive, extract its content (usually a .js file) to Your Documents\CopperCube\extensions on Windows or ~/Documents/CopperCube/extensions on Mac OS X, restart CopperCube.
This Extension/Plugin is Free to download, if you want you can also Donate via Paypal, to support my work to provide you more good tutorials and more Coppercube related stuff.