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).

Version 1.0.0. Published November 10, 2018

Age Rating: 4+

Average Rating

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.

No reviews yet

No reviews have been left for this asset - be the first!

Package contents

Loading, please wait

What is the issue?

Back to Top