Page 1 of 1

Scripting Problem

PostPosted: Sat Mar 15, 2008 11:47 pm
by Kooldudese
I have asked this question several times and no one has been able to help me, but ill ask it again because it is quite crucial to my game and to me it seems like people have already done this before...
Okay, heres the question
How to you make something based on an hp bar, except its a text based actor and basically i want to know how to make it so that when the actor gets hit ( the player, which is different from the text ) the text goes down. (heres the trick though, the text file starts with an hp lets say 100, and every time the player gets hit the number "100" goes to "99"than "98" and so on... )

In other words, how do you script it so that it can subtract from the original text actor?
PLEASE HELP ME
IM HELPLESS
>.<

Re: Scripting Problem

PostPosted: Sat Mar 15, 2008 11:52 pm
by Caaz Games
hmm, how are you making the health bar with text?

Re: Scripting Problem

PostPosted: Sat Mar 15, 2008 11:59 pm
by Kooldudese
its based on the health bar, its not its more like health numbers o.O
just think of it as numbers

Re: Scripting Problem

PostPosted: Sat Mar 15, 2008 11:59 pm
by Kooldudese
Thanks you just gave me a great idea
XD
Im gonna go check and see if my idea works

Re: Scripting Problem

PostPosted: Sun Mar 16, 2008 12:06 am
by Caaz Games
i did?

Re: Scripting Problem

PostPosted: Sun Mar 16, 2008 12:11 am
by stevenp
Kooldudese wrote:
How to you synchronize the HP bar lenght, and the HP number so that when the actor gets hit the text goes down. as well as the hp bar length

>.<

ok heres a demo

Re: Scripting Problem

PostPosted: Sun Mar 16, 2008 12:13 am
by Kooldudese
Oh, please tell me how

Re: Scripting Problem

PostPosted: Sun Mar 16, 2008 12:20 am
by stevenp
theres a demo for you :D

press space bar to make the HP go down

and there u go ;)

Re: Scripting Problem

PostPosted: Sun Mar 16, 2008 12:29 am
by Kooldudese
Thx, ill go ahead and try it
if it works ill giv you a point

Re: Scripting Problem

PostPosted: Sun Mar 16, 2008 12:31 am
by stevenp
it will work, but if it doesnt, you can add me to MSN and i will take you step by step in voice chat ( so its much faster)

( it sais you havent downloaded the demo yet, its a few posts up )

Re: Scripting Problem

PostPosted: Sun Mar 16, 2008 12:35 am
by Kooldudese
Okay, thx

Re: Scripting Problem

PostPosted: Sun Mar 16, 2008 12:36 am
by stevenp
theres a demo above lol :P

its right after cazz's post

download it, ( it should be there.. unless the website glitched)

Re: Scripting Problem

PostPosted: Sun Mar 16, 2008 12:40 am
by Kooldudese
Thx , i just didnt see it XD

Re: Scripting Problem

PostPosted: Sun Mar 16, 2008 12:45 am
by Kooldudese
THANK YOU VERY MUCH +1 point XD YOUR VERY HELPFUL THANK YOU VERY MUCH :D

Re: Scripting Problem

PostPosted: Sun Mar 16, 2008 12:50 am
by stevenp
lol np ^,^

i hope your game is comming along very well and ty for the reputation point