- Joined
- Jun 13, 2013
- Messages
- 530
- Reaction score
- 376
- First Language
- English
- Primarily Uses
Hey guys, wondering if someone will be able to be able to provide some insight/suggestions for me. I'm currently working on a survival game and cutting down trees for wood is something the player will likely do a lot (wood is just so useful afterall) Thing is I'm trying to find the most effective way to have this system take place.
Here's my setup:
Thing is that can take a LOT of switches if you have a couple hundred trees in the game.
My goal is to...
-Use as little switches as possible
-Avoid limiting the player
-Avoid scenarios where cutting down one tree activates switches that cause other trees to become cut or spawn logs prematurely
At first my idea was to have trees require one or two switches making it so that ten switches could technically give you a hundred possible combinations. (Switch 1/Switch 2, Switch 3/Switch 7, etc.) But of course once those switches are cut on they can effect other trees.
For example if you cut down a tree that uses switch 5 and then another that uses switch 7, another tree that requires switch 5 AND 7 will automatically cut itself down.
TL;DR How can I use switches better or should I use something other than switches for this? THANK YOU!
PS: Ignore her wearing a dress in the cold snow or the repetitive and boring ground, they're placeholders.
Here's my setup:
Find a tree
Cut it down (activating one of the 15 or so switches related to tree cutting)
Cut that into smaller and smaller pieces as needed (activating another series of switches)
Cut it down (activating one of the 15 or so switches related to tree cutting)
Cut that into smaller and smaller pieces as needed (activating another series of switches)
My goal is to...
-Use as little switches as possible
-Avoid limiting the player
-Avoid scenarios where cutting down one tree activates switches that cause other trees to become cut or spawn logs prematurely
At first my idea was to have trees require one or two switches making it so that ten switches could technically give you a hundred possible combinations. (Switch 1/Switch 2, Switch 3/Switch 7, etc.) But of course once those switches are cut on they can effect other trees.
For example if you cut down a tree that uses switch 5 and then another that uses switch 7, another tree that requires switch 5 AND 7 will automatically cut itself down.
TL;DR How can I use switches better or should I use something other than switches for this? THANK YOU!
PS: Ignore her wearing a dress in the cold snow or the repetitive and boring ground, they're placeholders.

