If you set the code up so that the current text to a property, let’s call it TextOneKeyPressAgo, and then the letter gets added onto the current line, you can make a rudimentary backspace key. When the key is pressed, set the text to the TextOneKeyPressAgo property.
Hmmm, this only works with one backspace, which isn’t practical. Expanding this system would take up a lot of memory, I wonder if there’s a better solution?
You know, there’s a lot of cool computer science stuff that does some impossible stuff within limits. For example, there is a way to write packets of data in such a way that if the packet is damaged and is corrupted, it can fix itself, even when the anti-corruption is corrupted. What I’m getting at here is that there might be a way to write text as a number, where we could then do math operations on it to remove previously existed text.
Let’s have a number property. This will store our text. Every two digits will represent a letter in number code, ex: 0805121215. Then, when we want to subtract a letter, we just remove it as a number. So for the above example, we would do -15. Then we would do -1200, then -120000, adding two zeros to what we subtract each time. If we want to add a letter, first check for sets of 00s, and add the appropriate number. If we have a number with no 00s at the end, we can multiply by 100 and add the letter we want in number code.