Mounting a flipped animation problem
by Ray Graham · in Technical Issues · 01/12/2009 (11:27 pm) · 2 replies
Hi guys,
I've got one animation that I've flipped in the y-direction, but when I mount it to another object, it's no longer flipped.
Example:
%flipped = new t2dAnimatedSprite()
{
config = %config;
scenegraph = sceneWindow2D.getSceneGraph();
visible = false;
position = "-10000 -10000";
};
%flipped.setFlipY(true);
%flipped.mount(%something, "0.0 1.0", 0, false, true, true, true);
When I don't mount it (and put it somewhere that I can see like at position 0,0), the flipped animation is flipped as you'd expect. But the mounting is taking the flip away. :( Flipping it after the mount has no affect.
Setting FlipY="1" during t2dAnimatedSprite construction doesn't fix it either.
What am I missing?
Thanks!
I've got one animation that I've flipped in the y-direction, but when I mount it to another object, it's no longer flipped.
Example:
%flipped = new t2dAnimatedSprite()
{
config = %config;
scenegraph = sceneWindow2D.getSceneGraph();
visible = false;
position = "-10000 -10000";
};
%flipped.setFlipY(true);
%flipped.mount(%something, "0.0 1.0", 0, false, true, true, true);
When I don't mount it (and put it somewhere that I can see like at position 0,0), the flipped animation is flipped as you'd expect. But the mounting is taking the flip away. :( Flipping it after the mount has no affect.
Setting FlipY="1" during t2dAnimatedSprite construction doesn't fix it either.
What am I missing?
Thanks!
#2
www.garagegames.com/mg/forums/result.thread.php?qt=77094
01/13/2009 (12:57 am)
Yeah, I think this is a bug as I can only imagine that this is not how it was intended to work. I had a similar issue and here's the thread and fix:www.garagegames.com/mg/forums/result.thread.php?qt=77094
Torque Owner Ray Graham
After I mount the flipped object, I need to execute:
%reflect.setMountInheritAttributes(false);
Then when I make %something visible, I need to manually make %reflect visible. Then %reflect stays flipped.