Game Development Community

HealthBar is causing animations to stop

by Tyler Boland · in Torque Game Engine · 07/10/2006 (12:57 pm) · 13 replies

I modified the FPS Starter Kit to use my health bars, but The animations stopped( Running, dieing, ect)
I used the PNG format, and i using a a image editting program called "Photo Impact Pro Version 10".

#1
07/10/2006 (1:03 pm)
Uh, no. The health bar is definatly not the issue.
#2
07/10/2006 (2:04 pm)
Well everything worked before i put in the new health bar, i did not modife any code.
#3
07/10/2006 (2:21 pm)
Try disabling the new code and see if it works. If it does, start uncommenting code until you spot the problem.
#4
07/10/2006 (2:47 pm)
Quote:i did not modife any code.
#5
07/10/2006 (3:09 pm)
He must have. Either player.cs or the animation scripts in the player directory, or something. What's the console report?
#6
07/10/2006 (6:51 pm)
Ok, I just replaced the PNG image AROUND the HealthBar, with my own PNG. and all the animations stop.
#7
07/10/2006 (7:14 pm)
That just doesn't make any sense at all.

Are you suggesting that if you resort to the original health frame png the animations start working again?

I would suggest you have accidently made a scripting error and or moved / deleted a file pertaining to the orc dts.
#8
07/10/2006 (7:45 pm)
Did you use the same size image? The image you create, is it power of 2. if you still having this problem send me the image and will drop in mind and see what happen.
#9
07/11/2006 (8:18 am)
No after I changed the healthbar the animations stopped then i put the orginal healthbar back and yet still no animation. I did not change any script and the image had the same name as the original.

although, I did get this message when saving my image, "the file format you have chosen does not support object saving. If you choose to continue, all objects will be merged onto the base object, do you want to continue?"

I am using Photo Impact as my graphics editor.
#10
07/11/2006 (8:23 am)
You definetly modified something. There is no way changing images can cause a problem like that. Its probably a resource you installed.
#11
07/11/2006 (8:39 am)
I think i found the problem i deleted the first copy of the starter.fps and made another and the animations did not work. then i tried the starter.fps that came with the engine and the game worked perfectly.
#12
07/11/2006 (8:48 am)
It worked i Canged the image around the health bar in the original and it worked . when i copied the folder(starter.fps) it renamed it copy of starter.fps. this probebly messed up the scripts.
#13
07/11/2006 (8:52 am)
Quote:
when i copied the folder(starter.fps) it renamed it copy of starter.fps. this probebly messed up the scripts.

This is why we asked you if you changed something else (: And you did.

Congrats on getting it working!