Does Brutus2D support class constructors?
Class Constructors?
Forum
» Making Games / Novice Questions and Answers
» Class Constructors?
Class Constructors?
Woad 23 May 2007 03:12
class_initialize gets called when ever an object is created with the new keyword (if you have defined it). However i advice not to use it because it will supress any errors and exit the function and let B2D continue executing if anything fails. This has caused me many headaches debugging. Another drawback is that you cannot pass any paramteres to the class_initialize procedure so there :(
I would recommend making your own initialize method instead where you can pass parameters :)
Yeah, aparently it is a microsoft thing. I wrote about the "ignoring-errors" problem on the B2D forum but it also seems to be a microsoft thing. Here's the bug-report:
http://brutus2d.proboards44.com/index.cgi?board=bugs&action=display&thread=1179587454
/forum/t-10081/class-constructors#post-