![]() |
Level Editor
7 Attachment(s)
I've been working on a level editor for the past few days after seeing Dusty's tile functions and realizing how I could use them effectively.
You can change the key needed to be pressed to open the editor in onKeyPressed() on the clientside. The default is F9. (npcserver) needs folder rights to "r [folders that can load]/*.nw" to load and "rw [folders that can load and save]/*.nw" to load and save them online. Default folder is "levels/*.nw", so you should give (npcserver) folder rights to it. NPC Code:r levels/mainlevels/*.nw The above will allow it to load the levels in levels/mainlevels/ but not save, and will allow it to load and save levels in levels/uploadedlevels/. You can change the folder that will load/save online by changing temp.folder. You can also add checks for who is trying to load/save, but temp.folder has to be the folder and (if you want) file name start they can use. Default setting is "levels/[accountname]_". Remember that you must include "/"'s and can't load multiple folders at the same time; It is suggested you have people save to their own folders/a to-be-moved folder instead of a main folder which an admin can move for security. PHP Code:
Near future updates:
Thanks to Dusty for his tile functions (http://forums.graalonline.com/forums...hp?t=134258008), Aeko for the button images, and Skyld for the NPC scripting syntax highlighting profile (the ones used in Scripted RC). |
The interface needs some work, and I would recommend removing signs completely. You might also want to eventually add tabs like with the offline level editor.
Besides that, it looks off to a good start :) |
nice work, man.
i think you should use a "GuiTreeViewCtrl" for loading levels, if people are going to use this for all their levels. and tabs for working with more then 1 level. ^^ awesome work, keep at it! |
Like I said on RC, you need multiple tile selection :3 And even without there's no sort of feedback showing that you've selected a tile, it is pretty confusing at first.
Ooo, and flood fill :D |
1 Attachment(s)
Small update:
Added hints for textboxes with little to no information (links, signs, NPCs, and the tileset changer). |
1 Attachment(s)
Another update:
LAYER SUPPORT! This might not be 100% but I think it's good enough for use. If there's a problem post what it is here. Also, ignore the white pixel at the top left of the level in view. I needed to add that so you didn't get a black screen over your level. It won't actually be there in the level. |
Geez Switchy, stop getting x100 times better everyday <3
|
1 Attachment(s)
Fixed some transparent tileset problems.
|
For adding/editing level links, I wouldn't just make someone face 6 text fields filled with numbers, they should probably have text labels denoting what changing the number in the field will change (New X, New Y, X, Y, W, H)
|
Quote:
Quote:
|
Quote:
Quote:
|
Quote:
At the time of making them I didn't want to make the window larger than it was because it was fitting perfectly so I just added hints, but I could replace them with some GuiTextCtrls. |
Well since you're scripting it, cut the fat and improve it instead of mimicking what we already have.
I.e: X, Y, Width, and Height really aren't needed. Things that would be useful: - NPC Filters (Hiding Character NPCs only, Hiding other NPCs, Hide All NPCs) - Improved Link Editing (Hover-over link to see/edit exit details) Also, Nice work. |
Quote:
|
Text labels are always good do that it also works on touchscreen :)
|
All times are GMT +2. The time now is 12:12 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.