Author Topic: [SUGGESTION] [EDITOR] Lock terrain/object pieces  (Read 1880 times)

0 Members and 1 Guest are viewing this topic.

Offline Wafflem

  • Posts: 943
    • View Profile
[SUGGESTION] [EDITOR] Lock terrain/object pieces
« on: February 26, 2016, 06:36:52 PM »
I feel this can be a hassle to code, so if you can't do it now or even at all, then no worries; at least the undo/redo buttons will be enough.

I would like to know if you can make it so you can set a terrain/object to prevent it from being moved. You can right-click on a terrain/object piece to bring up a menu, then click "Lock piece". This is to prevent you from moving the piece at all if you attempt to drag it, until you ask to have it "unlocked".

This, again, will be very useful in if you want to modify someone's level but don't want to move any of the terrain/objects. It will also be useful for tag-team contests where one cannot move the terrain/objects.
YouTube: www.tinyurl.com/YTWafflem
Twitch: www.twitch.tv/Wafflem467

Have level designer's block right now? Have some of my incomplete levels for LOTS of ideas!

Offline namida

  • Administrator
  • Posts: 12399
    • View Profile
    • NeoLemmix Website
Re: [SUGGESTION] [EDITOR] Lock terrain/object pieces
« Reply #1 on: February 27, 2016, 12:54:17 AM »
This is probably the easier of the two to implement. I'll look into it when I get a chance (probably tomorrow).
My Lemmings projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)

Offline namida

  • Administrator
  • Posts: 12399
    • View Profile
    • NeoLemmix Website
Re: [SUGGESTION] [EDITOR] Lock terrain/object pieces
« Reply #2 on: March 09, 2016, 05:48:45 AM »
In regards to this - should the locked / unlocked status also be saved into the level file? (No change would be needed to the player to accomodate this inherently, although unless changes to the player are made, the flag wouldn't be applied in dumped levels.) Or should it be purely in the editor's memory, and thus lost when the editor (or even just the level) is closed?

Aside from potentially saving this to a file, this has now been implemented. :)
« Last Edit: March 09, 2016, 06:36:24 AM by namida »
My Lemmings projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)

Offline namida

  • Administrator
  • Posts: 12399
    • View Profile
    • NeoLemmix Website
Re: [SUGGESTION] [EDITOR] Lock terrain/object pieces
« Reply #3 on: March 09, 2016, 07:09:40 AM »
For now, I implemented support for including lock / unlocked status in the saved level file (yes, this is supported for SuperLemmini levels too; no, it doesn't at all interfere with their playability in SuperLemmini itself). If this turns out to be annoying, I can change it later.
My Lemmings projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)