Creating a tile
Creating a tile
You can draw or remove floor tiles or squares in the dungeon using the dungeon editor tool accessed with the #3 key. Is there any to do this using a dungeon script to add or remove floor tiles on the fly?
Re: Creating a tile
Tiles and the heightmap are immutable as far as I know. Of course you can fill a level with empty tiles and dynamically spawn and destroy floor/wall/ceiling/obstacle objects as needed, but you won't be able to change move sound, heightmap material, or underwater.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: Creating a tile
Once again, thanks for the info. You saved me from wasting a lot of time.
Re: Creating a tile
For the sound, you [effectively] can with a party hook. Just have it check for a custom (silent) tile, and/or the location and play the desired sound effect.minmay wrote:Tiles and the heightmap are immutable as far as I know. Of course you can fill a level with empty tiles and dynamically spawn and destroy floor/wall/ceiling/obstacle objects as needed, but you won't be able to change move sound, heightmap material, or underwater.
You could use a void tile, and use tables to spawn/or destroy sets of assets to it.RayB wrote:Is there any to do this using a dungeon script to add or remove floor tiles on the fly?
It's kind of involved though.
**And yes, I just noticed this is in the Grimrock forum, not Grimrock 2. So not the void tile I was thinking about.
Last edited by Isaac on Fri Mar 20, 2015 9:47 pm, edited 1 time in total.
Re: Creating a tile
Well yeah, I figured that was obvious. Similarly, you should also be able to change the heightmap's textures in 2.2.4 with MaterialEx:setTexture(). There's no way you can reasonably imitate dynamic water tiles though.Isaac wrote:For the sound, you [effectively] can with a party hook. Just have it check for a custom (silent) tile, and/or the location and play the desired sound effect.minmay wrote:Tiles and the heightmap are immutable as far as I know. Of course you can fill a level with empty tiles and dynamically spawn and destroy floor/wall/ceiling/obstacle objects as needed, but you won't be able to change move sound, heightmap material, or underwater.
I assumed it was just posted in the wrong subforum due to the topic title but upon re-reading you may be right. You can imitate wall/floor to some extent in Grimrock 1 by dynamically spawning and destroying models and obstacles, too, but this a terrible idea at a large scale because Grimrock 1 uses level geometry for occlusion; you will end up rendering the entire level at once. Also you can't stop the player from throwing items at the fake walls.Isaac wrote:**And yes, I just noticed this is in the Grimrock forum, not Grimrock 2. So not the void tile.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.