Hi there,
Last night I asked about saving object information to a text file, well I have managed to finish that, and loading the information back in too.
Now I am trying to figure out how to use the saved information to create the game objects.
Here’s an example of the information I am loading in:
a, b, c, (d)
Where a = the type of object, b = position.x, c = position.z, d = rotation
Example of saved/loaded data:
1,-5,-10,(270.0, 0.0, 0.0)
1,0,10,(270.0, 270.0, 0.0)
2,10,-10,(270.0, 90.0, 0.0)
4,0,0,(270.0, 270.0, 0.0)
3,10,10,(270.0, 0.0, 0.0)
What would be the best way to instantiate an object at those co-ords/rotation for each line?
I appreciate any help ![]()