level editor/upload and share levels?

Get help using Construct 2

Post » Wed Apr 27, 2016 4:52 am

Okay so ive been knocking around and idea to include a level editor in a game Im working on, but I kind of only want to do it if there is a way to basically allow players to share their own created levels with friends. Im fairly well versed in c2 (i use is for Wii U, xbox one and pc games) but nothing thats really had any kind of networking or anything like that.

Im NOT looking for anyone to write the code for me, mostly just if anyone knows if this is possible and can explain it. I cant seem to find anything really providing info on it. Even if its just PC A connects to PC B to let player B into player A's level they built.

Thanks gamedev peeps! :D
B
12
S
2
Posts: 57
Reputation: 799

Post » Wed Apr 27, 2016 4:39 pm

Share their own levels with friends? Have you ever tried opening some map files of some games? For some games, they just store map's data in XML format while some older games, they might use INI format. This all depends on them.

Firstly, you possibly need to create your own level parser, and you will possibly be the one who design and decide of all the format and what not. When your app parses the file, it should decide which code does what and which object goes where on a map in the game, possibly in the beginning of the layout, etc. Also, do you want the map to be able to hold some logic too? (ex. if player enters a certain area, what happened?) If so, your event sheets must be designed to be flexible and applicable with all these user-generated contents.

Transferring a level from one machine to another would be similar to transferring a file. Back when Internet is still slow and sluggish and less interactive, players just download map files (made by other people) online, place these files in the game's folder, then load them up in the game. But of course, many games these days download new maps, etc. automatically, place them in the right place, and the player will just see all the new maps updated and selectable in their game. The idea is the same, but just automated. (Alternatively, some online games stream a map from a server and load it up without saving any file on the device.)

I think you gotta go down and dirty for this, unless there are some magnificent plugin/tools/engine out there that I am not aware of that could help you further a bit. Have you check out for something like this in the Scirra Store?
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,469

Post » Wed Apr 27, 2016 9:45 pm

Ive been doing some more digging an apparently it seems its possible to save a level using Json and then upload to an SQL database and have another player download it in the game from the same database. It seems possible from what Ive found, im gonna look into it and try a prototype in the next few days.
B
12
S
2
Posts: 57
Reputation: 799

Post » Wed Apr 27, 2016 9:47 pm

This is what I eventually found after some digging.
https://www.scirra.com/tutorials/585/ho ... vel-editor
B
12
S
2
Posts: 57
Reputation: 799

Post » Wed Dec 14, 2016 7:54 am

Hi p0tayters,

I know this is an old post, but I'm wondering how you got on with your game and the level editor? Did you get it working?
B
10
S
3
Posts: 56
Reputation: 804


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], Isomoar and 12 guests