How do I make a Level editor

Get help using Construct 2

Post » Fri Oct 14, 2016 11:19 am

Hi Im trying to make a level editor on construct 2 so im making a top down game a shoter to be exact and im making it for native pc I think is by using the NWS.js and i suck at making level editors + arrays + File shoser + dictionarys + ajax.

ok i want to make a level editor capable (IF IT IS POSSIBLE) i want it to be able to save and load levels to a chosen location by the NWjs file choser action .

and to save the level to a format that the game only reconises

and also Save like level actions for example when player colides with rock then player destroy or something like that

I am a noob on this go easy on me :)
B
8
S
1
Posts: 11
Reputation: 432

Post » Fri Oct 14, 2016 7:11 pm

Message: Marotta can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?
Not 100% sure what you mean by level editor but I think what you are refering to is a tilemap?

https://www.scirra.com/tutorials/1001/l%20...%20me-with-it

The link is used for a platformer but you could use the same concept for a top down level creator.

Scirra documentation on tilemaps - https://www.scirra.com/manual/172/tilemap
B
6
Posts: 10
Reputation: 272

Post » Sat Oct 15, 2016 5:24 pm

Really cool consept, but i want to make like an in game level editor that alows the player to make custom levels and share them with others

Sorry for bad ENG
B
8
S
1
Posts: 11
Reputation: 432

Post » Sun Oct 16, 2016 2:03 am

Hey Jean, if you are new I would start with something easier tbh but to answer your question - I would do it with an array.

Every piece of your scenery would have a number associated with it and when you make the map locally it is saved in that array and shared with the host or peers for them to create it on their side.

A tiny rectangle map might look like this in the array:

6 / 1 / 0 / 0 / 3
4 / 0 / 0 / 3 / 5
2 / 4 / 0 / 3 / 6

Still, I would suggest you just focus on making the game without the level editor because again if you are new you will find that hard enough I think. Especially if it is multiplayer. If you can do this then adding a level editor afterwards wont be a massive issue.
ImageImage
B
130
S
23
G
7
Posts: 1,078
Reputation: 13,280

Post » Sun Oct 16, 2016 4:39 pm

thanks for the help i really apreciate the support
i will kepp making my game without a level editor thanks for th advice
B
8
S
1
Posts: 11
Reputation: 432


Return to How do I....?

Who is online

Users browsing this forum: DiegoSanudoDT, Google [Bot], Yahoo [Bot] and 11 guests