Type in a type

Blitz3D Forums/Blitz3D Beginners Area/Type in a type

EEK!

Ok, I've got even more
Or perhaps I'm totally misusing the reason for types.

Well ok. I'm got my badgers inside my sheep.
Trouble is when I create two sheeps any new badgers that I create appear in both sheep instances. Infact no matter where I create badgers in my entire program, they all appear in

I'm basically trying to do something like this

       |- badger1
       |
sheep1 --- badger2
       |
       |- badger3


       |- badger4
       |
sheep2 --- badger5
       |
       |- badge6


At the moment it's like this:-
       |- badger1
       |
sheep1-| badger2
       |
       |- badger3
       |
       |- badger4
       |
sheep2-|- badger5
       |
       |- badge6


Also I can't create any badgers at all inside functions, only globally otherwise it tells me off for using my type incorrectly.

So I can't do b\sheep.badger = new badger

What in the hell is going wrong? I am so thick! HELP ME!! :)