MyFishGame(Nemo) Screenshots
by Rogers Vizcaino · in Torque Game Builder · 07/31/2006 (9:26 am) · 8 replies
Allright there are the screenshots, for those interested please read my previous thread and help me... thanks a lot
http://www.2r-tech.com/nemo1.jpg
http://www.2r-tech.com/nemo2.jpg
http://www.2r-tech.com/nemo3.jpg
http://www.2r-tech.com/nemo1.jpg
http://www.2r-tech.com/nemo2.jpg
http://www.2r-tech.com/nemo3.jpg
About the author
#3
08/01/2006 (8:04 am)
Good job, Rodgers!
#4
i want to ask something to you
did you see the life bar? i know i'm doing this in the wrong way
i placed the bar directly in my level builder and i am changing the width property, the problem is that i can't keep the bar aligned to the left frame, it shrink but to the center.
08/01/2006 (9:43 am)
Thanks kevini want to ask something to you
did you see the life bar? i know i'm doing this in the wrong way
i placed the bar directly in my level builder and i am changing the width property, the problem is that i can't keep the bar aligned to the left frame, it shrink but to the center.
#5
You may be able to solve your problem by using setSizeX instead of setWidth. Let me know if that works or not. On second thought, I don't think that will work, but it's worth a try, huh?
Honestly, I don't think it would matter how it shrinks, it's just a visual representation, but you should do what you think looks best.
For my health bars I used GuiCtrls and the setExtent function to shrink them. I think setExtent is a GuiCtrl only function, but heck, you want to give that a spin as well
08/01/2006 (3:29 pm)
You may want to look at this.You may be able to solve your problem by using setSizeX instead of setWidth. Let me know if that works or not. On second thought, I don't think that will work, but it's worth a try, huh?
Honestly, I don't think it would matter how it shrinks, it's just a visual representation, but you should do what you think looks best.
For my health bars I used GuiCtrls and the setExtent function to shrink them. I think setExtent is a GuiCtrl only function, but heck, you want to give that a spin as well
#6
then i'm going to try the GuiCtrls way
thank you very much
08/01/2006 (3:34 pm)
Thanks man, the setSizeX doesn't work for me, i got the same resultthen i'm going to try the GuiCtrls way
thank you very much
#7
Just give your bar the healthBar class and use this function.
08/01/2006 (5:08 pm)
If you use TGB objects for the life bar then you need to make your own sizing function... something like thisfunction healthBar::setBarWidth(%this, %width)
{
%posX = %this.getPositionX();
%startWidth = %this.getWidth();
%widthDiff = (%startWidth - %width) / 2;
%this.setPositionX(%posX - %widthDiff);
%this.setWidth(%width);
}Just give your bar the healthBar class and use this function.
#8
08/01/2006 (5:54 pm)
Also, a neat way you can fake it, is to just make the graphic twice as wide as you need it, with the left half transparent nothingness. That way when it scales on the "center" of the x-axis, it will appear to just decrease from the right. It's a nice way in general for faking an offset axis on objects.


Torque Owner Kevin James
To learn how to use BBC click on the link at the bottom of the screen: (Want to use bold, italics and add links to your text? Click here to learn how)
It'll show you how to put screenshots in-thread.