Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

There are numerous ways to handle it, I kept it open by design to keep it more flexible to the game dev's preferences.

Here are 2 best practices:

Method 1 (requires the hotbar plugin that comes with the sandbox bundle):

  • Make 2 Common Events: One to open the menu for "houses", one for "furniture"
  • Using eventing, you can anytime replace a Common Event from the hotbar with the one that you want to use

Method 2:

  • Inside the Common Event to open the menu, add a Variable OP and store the Map ID into a new Variable "Map ID"
  • Next, make a Conditional Branch and check whether the Variable matches the ID of your outside map
  • If yes, open the menu for houses, otherwise, for furniture
  • You can have as many Conditional Branches as you need
Variable OP: current Map
If Variable current Map == 1
    MK.Sandbox.openMenu('houses')
If Variable current Map == 2
    MK.Sandbox.openMenu('furniture')
(1 edit)

Thank you so much! sorry to keep asking questions, i've been figuring more out slowly, I was wondering if your sandbox plugin was only designed for 1 layer on top of another, or if you can add more, as in im trying to make a sourcemap for say a window on a wall, and then maybe some flowers or vines you can then place over top of that window on the wall with 3 layers total? This is an amazing plugin to anyone on the fence about it btw^^

Don't worry asking questions, I really appreciate them! They tell me that you guys like my stuff :)

My plugin does not add a "new" layer, that would be too complicated. Instead, I designed it to follow RPG Maker's 6 layers world (i.e. A lower, A upper, B lower, B upper, shadows, region tiles).

I briefly tested this pattern, and it worked for me. I was able to first build the window (line 6), and then the flowers (line 7) on top.


Tell me whether this fits your needs!

Thank you!! when you did that, were the walls layer 1, the window layer 2, and the flowered window the 3rd layer?

Heres an example im strugglin with, the first layer I have walls, the 2nd is the window/variant for each wall/window, and the 3rd layer id like to allow to place the vine overtop of the window for example although its not allowing me too haha, Im confused what I did differently compared to the source map you sent a bit ago

*Edit* Apologies I forgot to mention I do have a line with just walls that allowed me to place the window over the wall just fine, its applying the 3rd layer to objects Im struggling with ^.^

@Aerosys I got it!! Im seeing now how it works for the layering and how you did it, thank you so so much for all your help!! your plugin is absolutely amazing