Game Development Community

Object, inexplicably, changes position at beginning of level

by rennie moffat · in Torque Game Builder · 08/27/2010 (2:37 am) · 1 replies

Hi there i have a quick question that maybe some one can answer. I have an object bigBox. It is the owner of a behavior. In that behavior are 5 t2dSceneObjects called "trailer1, trailer2..." . OnlevelLoaded I set the 5 trailers to be at position of startTile, another t2dSceneObject in that same behavior. My echos return that onLevelLoaded that the 5 trailers are indeed at the same position as startTile, however, this changes. I know this because after a mini schedule I run, and thru echo tests that trailers 2-5 "pop out" meaning they move position... which is out of position.

These trailers have no collisions set, no physics, they are simply t2dSceneObjects, slave the player input. So even with no input they move out of position.


here is the echo I am receiving update is called 100ms after onLevelLoaded
....
bigBoxClass::onLevelLoaded+++++++++++++++++++++++++++++++
%startTilePos6.835000 -5.227000
%trailer1Pos6.835000 -5.227000
%trailer2Pos6.835000 -5.227000
%trailer3Pos6.835000 -5.227000
%trailer4Pos6.835000 -5.227000
%trailer5Pos6.835000 -5.227000

bigBoxClass::update+++++++++++++++++++++++++++++++
%trailer1Pos6.835000 -5.227000
%trailer2Pos-0.493000 -0.365000
%trailer3Pos-0.493000 -0.365000
%trailer4Pos-0.493000 -0.365000
%trailer5Pos-0.493000 -0.365000



Can anyone explain this?

About the author

My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.