Clustered behaviours bad for debugging

Posted by Michael on February 27th, 2009, in Development

Debugging “compound” behaviours like “Do Now” and “Do With Object” is turning out to be a bit of a nightmare. Fixing one thing for one specific behaviour often causes errors in another specific behaviour. Errors that sometimes take a long time to be discovered.

Instead of making these huge behaviours with lots of switches for specific elements, it would be better to put shared elements into separate modules (like “Go To Target” already is, e.g.) and still make unique systems for each behaviour. Or perhaps a more object oriented approach would work.