x


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?

more ▼

asked Oct 04 '10 at 02:22 AM

d1red gravatar image

d1red
19 3 4 6

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Nov 18 '11 at 04:22 PM

jc_lvngstn gravatar image

jc_lvngstn
451 24 29 40

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x452
x356

asked: Oct 04 '10 at 02:22 AM

Seen: 681 times

Last Updated: Nov 18 '11 at 04:24 PM