Level Editor Help Please

For questions about using Classic.

Post » Fri Jun 17, 2011 5:40 am

I am new to this engine and I am working on a level editor for a game i am making. It works great so far but when I add a save function it doesnt save all the instances in the editor part. For example, I have one object called solid_start. I have an edit box called world_name and a button called btn_save. I have the action so when the user clicks btn_save, it saves solid_start.XY to a .ini file. The user adds more than one of solid_start in different positions and presses btn_save and it only saves the first solid_start.XY. How would I get it to save the rest of their positions? In the .ini file it saves as solid and I would like it to add a "1" to the end of solid. Eg. solid1 = x,y/solid2 = x,y/solid3..solid4..solid5.....solid99...solid1000.. If you get what I mean.

Thanks.
B
1
G
1
Posts: 6
Reputation: 437

Post » Fri Jun 17, 2011 6:07 am

Have you tried the 'Examples and Tutorials lists'
Plenty of examples under 'Map editors and others' and 'ini files'

viewtopic.php?f=8&t=8169#p62644

Good luck.
B
19
S
6
G
7
Posts: 1,204
Reputation: 7,296

Post » Fri Jun 17, 2011 7:12 am

Hey. Thanks for the reply. I checked through the examples but cant find one with whant I am wanting to do. What I am looking for is kind of like object stacking in an ini file I guess. Hard to describe.
B
1
G
1
Posts: 6
Reputation: 437

Post » Fri Jun 17, 2011 8:54 am

Have you read this post about saving to 'ini' files?

[url:1j2ah9ts]http://www.scirra.com/forum/viewtopic.php?f=16&t=1721#p12302[/url:1j2ah9ts]
B
19
S
6
G
7
Posts: 1,204
Reputation: 7,296

Post » Fri Jun 17, 2011 9:35 am

Ah, thats perfect actually. Thank you very much for that!
B
1
G
1
Posts: 6
Reputation: 437


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests