What am I doing? :- /

BlitzMax Forums/BlitzMax Beginners Area/What am I doing? :- /

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.

Could somebody explain in simple terms what is the benefits of having a piece of code attached to a piece of data? Does it just come down to making it easier to think about things in terms of objects? Like, if I have 50 enemies on the screen, why would I necessarily want all of them to hair their own piece of duplicated code, rather than a single separate function to do stuff to them? Is it faster?