Page 1 of 1

few more questions

PostPosted: Wed May 22, 2013 4:07 am
by ESL
So, this checkpoint thing is like the military? You can't pass through unless you show identification?

With the HP, I made an actor called health, gave it the HP bar animation. Then I made a variable called HP and gave my player the create actor script HP=100.

I am missing something in my thinking(long story short) but how am I giving or taking away health to and from the player?

Sorry to ask the same questions. I read and watch the turorials and the help section as well as search and browse through the forum but the information seems to be rather spread out in a universe type database.

Anyway, thanks!!

Re: few more questions

PostPosted: Wed May 22, 2013 9:13 am
by skydereign
ESL wrote:So, this checkpoint thing is like the military? You can't pass through unless you show identification?

Is this a question?
ESL wrote:(long story short) but how am I giving or taking away health to and from the player?

You change the HP variable. Lowering it lowers HP, and raising it increases HP. I doubt that is the answer you are looking for, so try rewording your question.

Re: few more questions

PostPosted: Wed May 22, 2013 12:41 pm
by ESL
I just don't understand the purpose of the checkpoint.

With the HP, the bar is green so how does a collision cause it to become shorter from losing power or longer from gaining power?

Re: few more questions

PostPosted: Wed May 22, 2013 7:03 pm
by skydereign
ESL wrote:I just don't understand the purpose of the checkpoint.

Depends on the type of checkpoint it is. Usually people just use checkpoints as temporary save points, as soon as you reach the checkpoint, if you die you get warped back to the checkpoint instead of the start of the level.

ESL wrote:With the HP, the bar is green so how does a collision cause it to become shorter from losing power or longer from gaining power?

Ok, hp bars are just another way of displaying the value of a variable. It isn't that the collision will shorten the bar, but rather it changes the value of HP. Your health actor though needs to have something in its draw updating its animation to display the proper hp value. http://game-editor.com/HP_Bar