Page 1 of 1

player health help please

PostPosted: Sun Apr 29, 2007 10:41 pm
by DarkParadox
i made a image hpbar and i want it to slowly get more transperant every time i touch it how do i do that ???

PostPosted: Sun Apr 29, 2007 11:36 pm
by Sgt. Sparky
on collision with the enemy,
Code: Select all
myhpbarname.transp += .1;

on the draw actor event of your hp bar,
Code: Select all
if(transp == 1)DestroyActor("MYPLAYER");

:D
the range of transparence is from 0 to 1.
if you need more help let me know. :)