GameMaker (2.0 - 2.2.x)
Icon

ztree

Zelun

You must be logged in to obtain assets

Description

Ztrees is a set of scripts that draws animated procedural trees. There are endless possibilities and a lot of customization.

You can draw them directly in the game (Wich is very costly) or get a surface/sprite with:

ztree_draw(x,y,seed,branch_color,leaf_color,[time],[wind],[width],[height],[ang],[max_branch_lvl],[leaf_shadow],[leaf_ammount]); 

=> Draw the tree at the (x,y) position with the given parametters

ztree_get_surface(seed,branch_color,leaf_color,[time],[wind],[width],[height],[ang],[max_branch_lvl],[leaf_shadow],[leaf_ammount]); 

=> returns a surface with the drawn tree


ztree_get_sprite(seed,frames,branch_color,leaf_color,[time],[wind],[width],[height],[ang],[max_branch_lvl],[leaf_shadow],[leaf_ammount]); 

=> returns a sprite with the drawn tree

Effects:

ztree_leaf_drop(x,y,ammount,correction); 

=> drops leaves at the correct branch position.

Initialization and finalization:

ztree_init_global() - You'll need to call this once at the start of the project.

ztree_init() - You'll need to call this once at the create event of every object that will.

ztree_free() - You'll need to call this to prevent memory leak.

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2 - Version 1.0.0. Published November 10, 2018

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait