GameINI's Split

Posted by Sustitos
Hi.
I Want That This Topic Be Delivered To Size43 'cuz I Need That Exists A Way To Split A Game Ini, As Using Line Break Without The "#", Please, If You Can Implement This. :)

Replies (5)

Last message on 30 Mar 2018

Size43 (Administrator) on 28 Mar 2018, 19:26:58
I'm sorry, I don't follow.

What exactly are you trying to split?
Sustitos (Topicstarter) on 28 Mar 2018, 19:44:46
Im Making A Level Editor And I Want Here To Save Data, And The Level's Data Is In This Way:

x,y, objectname
12,98,objname
19,09,name

and i want to access to the posibility to make a line break using "ENTER"
Size43 (Administrator) on 30 Mar 2018, 16:10:29
There is nothing preventing you from doing this. The INI values are just arbitrary strings, you can put anything you want in them.
TannerS on 29 Mar 2018, 13:42:48
Look into string delimiting, or splitting a string into an array of strings by a character. There are some excellent scripts you can find for it online.
jdev on 29 Mar 2018, 10:57:10
There is now way to do this in GameMaker other than using the # to make a new line, essentially a line break. You can put #'s into game ini's and player ini's and when read in your gamemaker code they will act as a new line. I use a similar system for my announcement board in my game.