Scroller bug or am i doing something wrong[Solved Ignore Thread]
by Raymond Ku · in Torque X 2D · 11/02/2010 (5:47 pm) · 2 replies
hey everyone i'm using the latest revision of CEV Torque.
I am trying to use a component to control a scrollers' scroll rates.
so in Torque I make the objects and attach the component.
Lets assume scroller 1,2, and 3 have this component attached.
this is my OnRegister
I've been noticing when i debug to the first line that the SceneObject is always pointing to scroller 1's material and data.
Even for scroller 2 and scroller 3 (or I assume that it is 2 and 3, because it is the second & third time the debug stops at the onRegister code) the SceneObjects point to scroller 1 data.
Can anyone reproduce this? or am i missing something?
Thanks, Ray
edit
it was a problem with my code, not a bug. Sorry for your time
I am trying to use a component to control a scrollers' scroll rates.
so in Torque I make the objects and attach the component.
Lets assume scroller 1,2, and 3 have this component attached.
this is my OnRegister
_sceneObject = SceneObject as T2DScroller;
ProcessList.Instance.AddTickCallback(SceneObject, this);I've been noticing when i debug to the first line that the SceneObject is always pointing to scroller 1's material and data.
Even for scroller 2 and scroller 3 (or I assume that it is 2 and 3, because it is the second & third time the debug stops at the onRegister code) the SceneObjects point to scroller 1 data.
Can anyone reproduce this? or am i missing something?
Thanks, Ray
edit
it was a problem with my code, not a bug. Sorry for your time
About the author
http://cip-game.blogspot.com
#2
I think the problem right now is that on register, they are pointing to the first scroller object in the scene that i create.
I hope I'm explaining clearly enough.
Thanks for helping
11/03/2010 (1:21 am)
they are different materials. In TxB no matter how i manipulate it, the first scroller I create in TXB will be the sceneobject for OnRegister functions for all other scrollers even if the material is different.I think the problem right now is that on register, they are pointing to the first scroller object in the scene that i create.
I hope I'm explaining clearly enough.
Thanks for helping
Torque Owner Duncan Colvin