A Fractal Tree Generator Script. Using recursion techniques the script quickly draws a tree to a surface and then converts it to a sprite. You can set any color combination and tweak the code to generate different styles of trees. Larger more complex trees can be created also.
four versions of the script are included scr_draw_tree scr_draw_dead_tree scr_draw_tree_ext scr_draw_dead_tree_ext
The first two versions allow simple one color trees to be drawn. The _ext versions of the trees allow variations in the color per branch and per leaf
Also you can save the images to disk by un-commenting some code. So they can be used to create backgrounds, or sprites. Possibilities are endless.
added scr_draw_tree scr_draw_tree_ext scr_draw_dead_tree scr_draw_dead_tree_ext
Version 2.0.0. Published August 22, 2014
Created with GameMaker: Studio v1.99.182
This asset hasn't received enough reviews yet.
You can only review assets you've bought.
I can't say enough good about this for the price, what an awesome little tree generator.
The code is only medium complex, it is not difficult to understand how the effect is achieved, or how to manipulate it. Use it to grow a nearly unlimited variety of unique trees of basically any color scheme you want. Fantastic.