Map Editor in Python?

For questions about using Classic.

Post » Wed Oct 13, 2010 1:50 am

I wanted to create a map editor for me and other users for my games. My logic for it is this:

[code:2f4b52s0]If the user saves the map, ask for a title to use in the New Game menu. After the user inserts the title, follow these operations:

-Save the object locations in a external file on the hard drive as a INI [or other preferred] file type.

-Record the title.

-Place in mapData folder.

After these operations, if the player goes to the new game menu to select a level, scan the folder and place readable map files onto the menu along with their title. If the player chooses a level, go to the main layout and place the objects at their defined locations, and run the game after loading.[/code:2f4b52s0]

How do I ask Construct to collect the data from the editor layout and save it as a file on the hard drive that it can read later? :D
B
26
S
7
G
5
Posts: 202
Reputation: 5,235

Post » Wed Oct 13, 2010 3:16 am

Not sure exactly what your wanting.
Are you wanting to make an editor just using python scripting?
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Thu Oct 14, 2010 4:20 am

[quote="newt":2d2k13kv]Not sure exactly what your wanting.
Are you wanting to make an editor just using python scripting?[/quote:2d2k13kv]

No, all I want to know is how to make the game save the objects on a layout in the game on a file on the PC and have a set title for the game to read, so then people can download custom maps and make them, and save me some time on level editing. :P
B
26
S
7
G
5
Posts: 202
Reputation: 5,235

Post » Thu Oct 14, 2010 5:13 am

Search the forum. There are a lot of examples already.
Might check the wiki for how to use the ini... that's a pretty good starting point.

[url:222bueus]http://lmgtfy.com/?q=Map+Editor+site%3Ascirra.com[/url:222bueus]
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Fri Oct 15, 2010 11:54 pm

[quote="newt":2qw3e540]Search the forum. There are a lot of examples already.
Might check the wiki for how to use the ini... that's a pretty good starting point.

[url:2qw3e540]http://lmgtfy.com/?q=Map+Editor+site%3Ascirra.com[/url:2qw3e540][/quote:2qw3e540]


Ah, thanks. :)
B
26
S
7
G
5
Posts: 202
Reputation: 5,235


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests