• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Saving A Path Created in Code

C

Clueless2016

Guest
Hi there....newbie here looking for a bit of assistance

Using the mouse I draw a a line - or lines - which define a path for an object to follow. I then use this to create a path in code using path_add(), path_add_point() etc.

I need to be able to save the path and any subsequent paths created during play in order to be able to retrieve them later. Is it even possible to save something like a path to a file? Just to be clear, the paths are created in the game and need to be saved in order to be available for subsequent games.

If anybody could point me in the right direct it would be most appreciated.

Many thanks
 

MusNik

Member
You can add your points to a ds_list and save it, instead of trying to save the path.
 
Last edited:
Top