Sy = The Y Location of the desired tile on the Tile Map.ĬhangeRegion = true/false // Changes the regionId of tile to match Tile Map tile if true. Sx = The X Location of the desired tile on the Tile Map. Y = The Y Location on the Game Map to swap out. X = The X Location on the Game Map to swap out. Swaps out a tile with all layers of a tile located on another map. (mapId, x, y, sx, sy, changeRegion, save) Save = true/false // Saves the changes made to the map if true. Run the event to see your map change! Map Transform Script Calls: (Copy to Clipboard button copies the script call needed for the prefab to your clipboard so you can paste it into a script call and edit the variables.)Īfer that your prefab is all set up. Map Prefabs are a set of tiles on a TileMap which can be called to by name and displayed on the game map! Prefabs are a very easy way to Transform your maps! A custom made program was designed to make creating prefabs easy and efficient! Creating a prefab in the Prefab Maker will automatically add an entry for it to the usePrefab plugin command! Follow the steps below to easily set up and use Prefabs!ġ: Create a map with "ChildMap" in its name.Ģ: Make changes to tiles on the map in the editor.ģ: Enter Prefab Info into Prefab Maker and Click 'Create Map Transform Prefab'.Ĥ: Use the usePrefab Script call to display the prefab on the game map! Use any tag in the name you wish as long as they match as seen below.įor most purposes Tile Maps should use the same Tileset as the Game Map. This lets the plugin know which maps to load data from. Place Ritter_MapTransform.js inside your projects js/plugins folderĪdd Ritter_MapTransform to your Plugin Manager and Activate itĬonfigure the Plugin Parameter (optional)įollow instructions for Setting up TileMaps("ChildMaps") Setting up TileMaps ("ChildMaps"):Ĭreate a new TileMap/"ChildMap" by creating a copy of an existing map or creating a new map and including the string "ChildMap" in its map name. The tag that must be attached to map names can be changed in plugin parameters! Use any label you'd like in the map name. *This Plugin Will Not Allow You To Use Multiple Tilesets On The Map* Custom Built Prefab Maker Program designed to make creating Prefabs easy!.
Detailed demo showcasing some uses for map transform!.Make all changes to the map temporary or permanent!.Undo all changes to the map and return it back to default!.Create Prefabs on another map and display it on the game map!.Swap out an area of tiles with tiles from another map!.Easily swap out a tiles data with a tile data from another map!.