How do I make procedurally growing tree?

Get help using Construct 2

Post » Sat Apr 18, 2015 4:09 pm

Hi,

I'm looking for a way to make procedurally growing tree for my game, but I don't know how to go about it. Any suggestions?

Thanks!]
M
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
81
S
23
G
20
Posts: 1,951
Reputation: 18,129

Post » Sat Apr 18, 2015 4:23 pm

If you don't want to use up a lot of sprites, you will probably paste sprites to the canvas/paster plugin or draw paths with those (not sure about the paster plugin, has been too long since I've used it).

As to the tree itself, think about:
- branching of one line into 2 or more at a splitting angle.
- a max. amount of branching allowed.
- number of branches per split
- Line lengths (stem is longest, little branches the shortes)
- will it get thinner each branch or continually? continually will be more coding work
- add randomness (lengths, angles, thickness, the possibility for a branch to end before the branch amount maximum)
- leaf "branches" after x-th branch level?

Well, I guess it depends on how complex you want to go into this matter and what effect you want to achieve exactly with this.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786


Return to How do I....?

Who is online

Users browsing this forum: Aquanex2, tarek2 and 1 guest