MATERIALS
Materials deal with the properties that objects share, and are relatively simple.
Materials should be reused, a material does not need to be created for each object.


"variable = add_material(density, particle asset 1, particle asset 2, metal, glass)"


This will store the material in memory, to be used by objects...

Argument Function
Density The density of the material, the more density, the more sound will be absorbed by the block.
Particle Asset 1 The particle asset to be created when the block is hit. (Set to -1 for no particle)
Particle Asset 2 Another particle asset to be created when the block is hit. (Set to -1 for no particle)
Metal Sets whether or not the material is metallic and whether or not bullets will ricochet off of it. (0 - no, 1 - yes) (Should not be applied to breakable blocks.)
Glass Sets whether or not the material is see through and whether or not enemies will try to fire through it. (0 - no, 1 - yes) (Should only be applied to breakable blocks.)



When editing the material in the authoring tools, the tool will look like this...