Hi All!,
I’m compiling an Application framework based on the code from the ‘First Project’.
Now, i understand that this framework has one Start method, and from there you set your event handlers and what not. Now, in the examples I happily went through the extra Components like LogicComponent, and Component. However, I cannot for the life of me register a component in my Start method of the ‘First Project’.
In my main class I declare
WeakPtr laser_;
and
Node * laser = scene_->CreateChild “laser”;
laser_ = laser->CreateComponent Laser;
But when the main Start() gets to laser_->Start() it crashes
Correct me when I’m wrong but as soon as i declare
Node * laser = scene_->CreateChild “laser”;
laser_ = laser->CreateComponent “Laser”
the registrant of the new should be exposed and visible…it’s not!
Please Help…I know that the examples are full of extra components but they’re wrapped in the Sample framework.
Lord Fiction