Log In  

Is it possible to take a string and index it or get individual characters from it? Ideally, I would like to convert to/from bytes to ascii characters. It looks like Lua 5.1 supports this in the standard library, but as far as I can tell, Pico-8 doesn't include it.

EDIT: I notice that I can use the # symbol preceding a token to get its length, such as a table or array or string, but I still can't directly index it.

EDIT2: After thoroughly reading the manual as much as possible, it looks like my answer is to use the sub() function.

P#23088 2016-06-17 20:25 ( Edited 2016-06-18 18:17)

Oh hey there's a wiki too, that's helpful. Thanks

P#23126 2016-06-18 14:17 ( Edited 2016-06-18 18:17)

[Please log in to post a comment]