- Home /
tree spawning help
i am making a game were you gather resources one being wood from trees after the wood is gathered i want the tree to disappear and a spawn point to replace the tree a little while after how would i script the spawn point to only spawn a tree after x amount of time after the previous tree was cut?
Comment
Answer by jc_lvngstn · Nov 18, 2011 at 04:22 PM
My thoughts: Anytime someone chops down a tree, store its position, type, and when it was chopped down. During gameplay, occasionally check this list and if enough time has passed for each one, respawn it.
I'm assuming that you already can handle removing and respawning trees, is this true?
Just a general approach...the details depend on how your game actually works.