Arrays are the best way. If you trees are sprites, sprite variables "spvar" can help you.