Home › Forums › TimelineFX Editor › Strange usage of Create in example code › Re: Re: Strange usage of Create in example code
But I assume the wxWidget style does not create a local variable using New inside the Create method, right?
So if you do
Local b:tBullet = New tBullet.Create(wx, wy, game.vaderbulleteffect, 2, game)
the Create code does more like an initialization than creating an object.
So in a good sense of OO the method should not be named Create but Initialize because it does not create an object but only initializes the Newed one.
Local b:tBullet = New tBullet.Initialize(wx, wy, game.vaderbulleteffect, 2, game)
But that’s just nitpicking and can safely be ignored 😉