A downloadable asset pack

Buy Now$4.99 USD or more

UPDATED FOR GMS v2.3+!

This GameMaker Studio 2 asset provides a complete and dynamic resource for creating destructible terrain. Unlike most other destructible terrain assets, this one does NOT use surfaces or shaders and relies instead on a textured polygon approach, meaning that you can create and destroy the terrain in real--time. This also means that it is incredibly fast, especially when compiled using the YYC. The asset also has simple save and load scripts, permitting you to create levels and save them out as files which can then be loaded at any time... give your game a level editor!

FEATURES:

  • Complete set of debugging tools
  • Game editor Demo where you can create and destroy terrain and see how it all works
  • Multiple "quality of life" scripts to make using the asset a breeze
  • Scaleable resources that will adapt to any size graphic used
  • Highly optimised code that culls to the view and (when compiled using the YYC) is blindingly fast
  • Heavily commented scripts and a complete demo to show how it can be used
  •  One script saving and loading, so you can create in-game editors, or create your levels and save them to be loaded later

NOTE! This asset can be used with pixel art games and gives beautiful crisp pixels on all destructible terrain by simply disabling AA and linear interpolation (or using the handy script supplied "terrain_set_smooth(false)". :)

Purchase

Buy Now$4.99 USD or more

In order to download this asset pack you must purchase it at or above the minimum price of $4.99 USD. You will get access to the following files:

com.nocturnegames.dterrain.yymps 2 MB

Download demo

Download
HTML5 Demo

Comments

Log in with itch.io to leave a comment.

If you were to use OpenACC and Adaptive Mesh Refinement, then you could possibly make it even faster.

I could probably encorporate a layer of smooth terrain using this system in between a foreground layer of tile-based, non-destructible terrain, and a background layer of other tile-based graphics/terrain. Perfect if you're playing a Metroidvania that involves exploring structures buried in rubble.

Deleted 102 days ago

I suspect not and I'd assume the crash is due to the sheer number of grid cells being generated... What room size and tile resolution are we working with here? If you could tell me how you're trying to set it up I can investigate and see what I can come up with... :)

Deleted 102 days ago
(+1)

Ah, that's the issue... yes, GMS2 currently has that hard limit, and I'll be honest and say that I'm a bit loath to mess with the code to work around it right now, as the 2.3.0 update is about to drop and it actually removed this limit completely from arrays. So, I'd prefer to wait a couple of weeks until that update comes out and then update the asset (as I'm sure the update will break something :( )... sorry if that's inconvenient for you, but I really would prefer not to spend days working on something that I'll probably need to re-do again anyway a few days later. Hope you understand and thanks for the purchase and reaching out!

Deleted 102 days ago

BigNum, Instance Pooling, and Vectors, to the rescue!
- https://sahaun.itch.io/bignumgml
- https://derjulien.itch.io/gms2-vectors
- https://destrovel.itch.io/gamemaker-instance-pooling

You can also probably look into Adaptive Mesh Refinement.

(+1)

Looks really interesting,does this work in physics world.  

Hi there! I'll be honest and say that I have no idea... I mean, the terrain will generate fine in a physics enabled world as it doesn't actually create instances and is all drawn using arrays... BUT, even though it will "work" it won't generate fixtures for collisions and things if you require them. You could probably do this yourself based on the density map or the polygon array, but it's not something I think would be easy to impliment. So, yeah, while the asset will work, I think converting it into any type of physical system would be very difficult. Thanks for the interest!