Text Pointers
Blitz3D Forums/Blitz3D Beginners Area/Text Pointers
| ||
I have a load of data that points to various information about where to get information for each level in a game e.g. data bob_address,lines_address,init_level_address etc plus a load of other stuff about that level. I want to be able to read that data into a TYPE, and then use the values to be able to use those pointers within my program. So, lets say my TYPE was: TYPE Level Field bobs Field lines field init_level etc I want later in the program to say something like MyPointer.Level = New Level read all the data in, and then use Restore MyPointer.Level\bobs to point to the data for the bobs on that level. This is indirect addressing, but I am unsure of what datatypes to use (having trouble using strings). Any ideas? I am using BlitzPlus, btw. Thanks. |
| ||
Ok, no need to reply as I have just searched through the archives and found out that I can't do what I wanted to. Oh well, seems a shame, but it's not the end of the world! |
| ||
Dunno if you need a type, often arrays can do. Anyway, keep your datatypes to numbers as often as possible, you have your data seperated by ,'s? If so you will need to read it byte by byte. Hard to tell it all, your description of the problem is a bit messy. |