Rendering T2DSceneObjects from multiple levels
by Jason Fox · in Torque X 2D · 11/09/2010 (4:03 am) · 4 replies
Hi everyone,
I am trying to load my player data from a scene file when the game starts, so that I can use it throughout the other levels in the game. However, the animated sprite is not rendering.
For reference, I am using the PSK, so my player consists of an T2DAnimatedSprite with is a puppet, attached to a T2DSceneObject, which is my player, using a T2DLinkPoint object.
Everything seems to be loading fine, and I am setting the SceneGraph on the player and puppet objects, but they are not rendering in my scene. Any ideas?
Thanks.
I am trying to load my player data from a scene file when the game starts, so that I can use it throughout the other levels in the game. However, the animated sprite is not rendering.
For reference, I am using the PSK, so my player consists of an T2DAnimatedSprite with is a puppet, attached to a T2DSceneObject, which is my player, using a T2DLinkPoint object.
Everything seems to be loading fine, and I am setting the SceneGraph on the player and puppet objects, but they are not rendering in my scene. Any ideas?
Thanks.
About the author
#2
If so, it might be in related to how/when you mount/register your player hierarchy vs animated sprite stuff.
11/11/2010 (12:42 am)
even sillier question. Will your scene render the animated sprite if placed in the center of the scene? (no link pointing or parent scene object stuff)If so, it might be in related to how/when you mount/register your player hierarchy vs animated sprite stuff.
#3
11/11/2010 (1:54 am)
The scenegraphs are the same. I am thinking it has something to do with the linking or spawn behavior of the puppet object.
#4
11/11/2010 (2:02 am)
I changed my player to just a T2DAnimatedSprite and it works fine. Interesting.
Torque Owner Duncan Colvin
otherwise double check your scenegraph stuff is correct (use the debugger to check that the player really is in the same scenegraph as the other objects).