More Problems from 3.1 TXB [Resolved] - OnCollision Delegate Must Be Declared in a Component
by Randy Lutcavich · in Torque X 2D · 09/13/2009 (5:41 am) · 4 replies
I'm adding an OnCollision Delegate in my Game class but it is not showing up in TXB.
The funny thing is, I know I am doing it right because when I put the same code in a new component class then build, TXB will update because it has recognized a new component and now the OnCollision shows up.
My question is, how do I get TXB to update even when I do not have a new component? Why won't it just recognize my new OnCollision Delegate when it is in my Game class?
The funny thing is, I know I am doing it right because when I put the same code in a new component class then build, TXB will update because it has recognized a new component and now the OnCollision shows up.
My question is, how do I get TXB to update even when I do not have a new component? Why won't it just recognize my new OnCollision Delegate when it is in my Game class?
About the author
Recent Threads
#2
I'm doing ok just setting up the OnCollision delegate in the MovementComponent for now.
Maybe it just has to be in a component. But I swear I had it in the Game class before.
09/13/2009 (5:40 pm)
Yea, no luck. I'm doing ok just setting up the OnCollision delegate in the MovementComponent for now.
Maybe it just has to be in a component. But I swear I had it in the Game class before.
#4
Thanks again!
09/13/2009 (6:22 pm)
Ah well thank you, Henry. I must be delusional for thinking it used to work in the game class.Thanks again!
Torque Owner Jake Davis