function and methods

BlitzMax Forums/BlitzMax Programming/function and methods

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.

@ziggy
Aha! I got it now. Use a function when it's related to the class but not any individual instances.

So for example if a had a gameobject class, is it better to make the render routine a function of the class or a method of the instances?