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
28
S
2
G
3
Posts: 61
Reputation: 2,523

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
113
S
41
G
20
Posts: 1,586
Reputation: 19,126


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests