by Super Pieman » Sun Dec 02, 2007 2:14 pm
life meters are easy. Just make an animation for every frame in the life meter, make an actor called HealthBar and give it the animation. Do Create Actor > ChangeAnimationDirection > STOPPED. Then for a collision or whatever makes your actor lose health put in this script.
- Code: Select all
HealthBar.animpos++;
If you want a health object then for a collision on it put in either this script
- Code: Select all
HealthBar.animpos--; // Gives one health
or
- Code: Select all
HealthBar.animpos=0; // Gives full health
Any questions please ask.
Current Projects:
*Lonely (2%)
**LinkSys (1%)
*To be made in GE, then ported to DS.
**To be made for the DS.