Ok, I think I'm getting confused about something and I hope when someone replys it'll be what I need to move forward..
I want to create more than one instance of a pre-defined object, like a small rectangle.
For instance, say I want to create a starfield. Nothing fancy, just say 40 5x5 rectangles on the screen in random places but I don't want to make 40 drawrec commands with 40 sets of co-ordinates.
Can someone give me an example of this? As basic as possable?
I've seen it in a few tutorials but they all seem to gloss over what exactly they do, or they seem to be part of a bigger chunk of code, which I'm really having a great deal of trouble with. Either that or I'm missing it each and every time I look for it.
Help me out guys, I'm going nuts over this!!
Thanks! :)
I want to create more than one instance of a pre-defined object, like a small rectangle.
For instance, say I want to create a starfield. Nothing fancy, just say 40 5x5 rectangles on the screen in random places but I don't want to make 40 drawrec commands with 40 sets of co-ordinates.
Can someone give me an example of this? As basic as possable?
I've seen it in a few tutorials but they all seem to gloss over what exactly they do, or they seem to be part of a bigger chunk of code, which I'm really having a great deal of trouble with. Either that or I'm missing it each and every time I look for it.
Help me out guys, I'm going nuts over this!!
Thanks! :)