player health help please

Game Editor comments and discussion.

player health help please

Postby DarkParadox » Sun Apr 29, 2007 10:41 pm

i made a image hpbar and i want it to slowly get more transperant every time i touch it how do i do that ???
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Postby Sgt. Sparky » Sun Apr 29, 2007 11:36 pm

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. :)
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron