making level files

For questions about using Classic.

Post » Sun Mar 20, 2011 6:35 pm

I would like to read in info from a text file to place sprites on the playfield.How do I read in each individual element from the file seperately.It seems that the file object reads in the whole file.
B
27
S
2
G
3
Posts: 61
Reputation: 2,498

Post » Sun Mar 20, 2011 7:58 pm

I usually load the file into a list box, then I can loop through each line and process them individually. Alternatively, you can use the Text Manipulator, which also has support for reading one line at a time, but it's not as straight forward.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests