smaller code

Blitz3D Forums/Blitz3D Programming/smaller code

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

boomboom, you would just put the colour first in the function.

Function create_cube(R,G,B,pos_x,pos_y,pos_z,scale_x=2,scale_y=2,scale_z=2)

Then you can override the default scales if you want, but you can't use the default function values if you are passing across values after that.