Game Development Community

Energy Bar

by Matt Huston · in Torque Game Engine · 04/13/2006 (5:28 am) · 1 replies

Something that has always bothered me is that when I load up the game, the energy is never at its max like the healthbar is. So you have to stand there for 5-10 seconds for it to refresh itself. I looked but didn't see anything other than the EnergyMax, is there something in the code to change this?

#1
04/24/2006 (10:31 am)
When the object is added you can use the %player.setEnergy(%player.maxEnergy); and then it will start full