few more questions

Non-platform specific questions.

few more questions

Postby ESL » Wed May 22, 2013 4:07 am

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!!
ESL
 
Posts: 96
Joined: Mon Jun 28, 2010 2:05 am
Score: 1 Give a positive score

Re: few more questions

Postby skydereign » Wed May 22, 2013 9:13 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: few more questions

Postby ESL » Wed May 22, 2013 12:41 pm

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?
ESL
 
Posts: 96
Joined: Mon Jun 28, 2010 2:05 am
Score: 1 Give a positive score

Re: few more questions

Postby skydereign » Wed May 22, 2013 7:03 pm

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
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron