Re: bgt, having trouble with classes, again
That was what your current code does.
What you want to do is more like this:
for(uint i=0; i<wall_num; i++) {
wall barrier(random(0, 100), random(0, 100), random(0, 100));
walls.insert_last(barrier);
}
Assuming that you have an array of walls, which needs to take handles, like so:
wall@[] walls;
Also, if BGT complains about "no default constructor", just add the line "wall() {}" to the wall class.
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector