Scripting Problem

Talk about making games.

Scripting Problem

Postby Kooldudese » Sat Mar 15, 2008 11:47 pm

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
>.<
User avatar
Kooldudese
 
Posts: 128
Joined: Sat Jan 27, 2007 5:20 pm
Location: In a house
Score: 0 Give a positive score

Re: Scripting Problem

Postby Caaz Games » Sat Mar 15, 2008 11:52 pm

hmm, how are you making the health bar with text?
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Re: Scripting Problem

Postby Kooldudese » Sat Mar 15, 2008 11:59 pm

its based on the health bar, its not its more like health numbers o.O
just think of it as numbers
User avatar
Kooldudese
 
Posts: 128
Joined: Sat Jan 27, 2007 5:20 pm
Location: In a house
Score: 0 Give a positive score

Re: Scripting Problem

Postby Kooldudese » Sat Mar 15, 2008 11:59 pm

Thanks you just gave me a great idea
XD
Im gonna go check and see if my idea works
User avatar
Kooldudese
 
Posts: 128
Joined: Sat Jan 27, 2007 5:20 pm
Location: In a house
Score: 0 Give a positive score

Re: Scripting Problem

Postby Caaz Games » Sun Mar 16, 2008 12:06 am

i did?
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Re: Scripting Problem

Postby stevenp » Sun Mar 16, 2008 12:11 am

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
Last edited by stevenp on Sun Mar 16, 2008 9:56 pm, edited 2 times in total.
User avatar
stevenp
 
Posts: 403
Joined: Sat Dec 22, 2007 12:49 pm
Location: canada, ontario
Score: 16 Give a positive score

Re: Scripting Problem

Postby Kooldudese » Sun Mar 16, 2008 12:13 am

Oh, please tell me how
User avatar
Kooldudese
 
Posts: 128
Joined: Sat Jan 27, 2007 5:20 pm
Location: In a house
Score: 0 Give a positive score

Re: Scripting Problem

Postby stevenp » Sun Mar 16, 2008 12:20 am

theres a demo for you :D

press space bar to make the HP go down

and there u go ;)
Last edited by stevenp on Sun Mar 16, 2008 9:57 pm, edited 1 time in total.
User avatar
stevenp
 
Posts: 403
Joined: Sat Dec 22, 2007 12:49 pm
Location: canada, ontario
Score: 16 Give a positive score

Re: Scripting Problem

Postby Kooldudese » Sun Mar 16, 2008 12:29 am

Thx, ill go ahead and try it
if it works ill giv you a point
User avatar
Kooldudese
 
Posts: 128
Joined: Sat Jan 27, 2007 5:20 pm
Location: In a house
Score: 0 Give a positive score

Re: Scripting Problem

Postby stevenp » Sun Mar 16, 2008 12:31 am

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 )
User avatar
stevenp
 
Posts: 403
Joined: Sat Dec 22, 2007 12:49 pm
Location: canada, ontario
Score: 16 Give a positive score

Re: Scripting Problem

Postby Kooldudese » Sun Mar 16, 2008 12:35 am

Okay, thx
Last edited by Kooldudese on Sun Mar 16, 2008 12:39 am, edited 1 time in total.
User avatar
Kooldudese
 
Posts: 128
Joined: Sat Jan 27, 2007 5:20 pm
Location: In a house
Score: 0 Give a positive score

Re: Scripting Problem

Postby stevenp » Sun Mar 16, 2008 12:36 am

theres a demo above lol :P

its right after cazz's post

download it, ( it should be there.. unless the website glitched)
User avatar
stevenp
 
Posts: 403
Joined: Sat Dec 22, 2007 12:49 pm
Location: canada, ontario
Score: 16 Give a positive score

Re: Scripting Problem

Postby Kooldudese » Sun Mar 16, 2008 12:40 am

Thx , i just didnt see it XD
User avatar
Kooldudese
 
Posts: 128
Joined: Sat Jan 27, 2007 5:20 pm
Location: In a house
Score: 0 Give a positive score

Re: Scripting Problem

Postby Kooldudese » Sun Mar 16, 2008 12:45 am

THANK YOU VERY MUCH +1 point XD YOUR VERY HELPFUL THANK YOU VERY MUCH :D
User avatar
Kooldudese
 
Posts: 128
Joined: Sat Jan 27, 2007 5:20 pm
Location: In a house
Score: 0 Give a positive score

Re: Scripting Problem

Postby stevenp » Sun Mar 16, 2008 12:50 am

lol np ^,^

i hope your game is comming along very well and ty for the reputation point
User avatar
stevenp
 
Posts: 403
Joined: Sat Dec 22, 2007 12:49 pm
Location: canada, ontario
Score: 16 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron