Page 1 of 1

Really new to this and game editor.

PostPosted: Sun May 08, 2011 2:08 am
by DeltaLeeds
Hi everyone, my name is DeltaLeeds (Call me Delta)

Lets make this forum for really new people who needs information on game editor. Because all I've found are really old forums about this... So lets keep this one going.

So... I have a few questions to ask... :D

1. I want to make a game level where we have to fight 3 enemies with health bars on top of them. How to do that?

2. If for example the life bar is empty , how do the actors die??

Re: Really new to this and game editor.

PostPosted: Sun May 08, 2011 2:37 am
by skydereign
Welcome to gE. This forum has a rule that you should ask questions in separate topics. So, makslane (the creator and admin) wants separate topics for each question. If of course your question is related to the question asked in the topic, then it is okay... but on several occasions he has said that we shouldn't do this kind of topic.

To answer your question, in the enemies create actor, you should create the health bar above the enemy, and parent it to the enemy.
enemy -> Create Actor -> Script Editor
Code: Select all
CreateActor("hp", "hpAnim", "Event Actor", "(none)", 0, -height/2, false);


That way the health bar will follow the enemy around. For the actual hp bar, when you understand how to make one that second question should be self explanatory. You will need an actor hp variable, and if that is less than or equal to zero, then you destroy the enemy actor. Do you have any programming experience? Either way you should look here for a simple hp bar explanation.
http://game-editor.com/HP_Bar

Re: Really new to this and game editor.

PostPosted: Sun May 08, 2011 2:54 am
by DeltaLeeds
Wow thanks :D That sure helped me. I'll be sure to post more questions :)
Oh,whats an animpos?

Re: Really new to this and game editor.

PostPosted: Sun May 08, 2011 6:11 am
by lcl
Welcome! :)
Animpos is variable that holds the actors animation position.
First frame is 0, second is 1, etc... So, when your actors animations current frame is (for exampl) the second one, animpos of that actor will be equal to 1. :D

Re: Really new to this and game editor.

PostPosted: Sun May 08, 2011 4:32 pm
by Turon
Jonathang Wrote: Lets make this forum for really new people who needs information on game editor. Because all I've found are really old forums about this...

What really old forums?

Re: Really new to this and game editor.

PostPosted: Sun May 08, 2011 4:39 pm
by lcl
Turon wrote:
Jonathang Wrote: Lets make this forum for really new people who needs information on game editor. Because all I've found are really old forums about this...

What really old forums?

He meant topics. :)

Re: Really new to this and game editor.

PostPosted: Tue May 10, 2011 11:46 am
by DeltaLeeds
Ok....You guys sure are helpful :D Well...I'm still making really little progress of my game.... So I have 2 questions:
1.How to make our health start from 11?
2.If our health reaches 0,how do we make the death frame? Like the actor explodes finally or somethin... :P

Re: Really new to this and game editor.

PostPosted: Sat May 14, 2011 9:02 pm
by 157pl
to start from 11 make a create actor on the enemy
Code: Select all
hp=11;



for the death animation put in another animation lets say explosion
then where you would put destroy actor put in
Code: Select all
ChangeAnimation("Event Actor", "explosion", FORWARD);

then on animation finish put in a destroy actor