Really new to this and game editor.

Game Editor comments and discussion.

Really new to this and game editor.

Postby DeltaLeeds » Sun May 08, 2011 2:08 am

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??
Last edited by DeltaLeeds on Thu Jul 27, 2023 12:53 am, edited 1 time in total.
Currently: Semi-Active.
Working on: Maybe putting my test games in gamejolt, polishing them a bit, but I still don't know when.
User avatar
DeltaLeeds
 
Posts: 693
Joined: Fri May 06, 2011 12:45 pm
Location: In front of my computer.
Score: 38 Give a positive score

Re: Really new to this and game editor.

Postby skydereign » Sun May 08, 2011 2:37 am

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

Re: Really new to this and game editor.

Postby DeltaLeeds » Sun May 08, 2011 2:54 am

Wow thanks :D That sure helped me. I'll be sure to post more questions :)
Oh,whats an animpos?
Currently: Semi-Active.
Working on: Maybe putting my test games in gamejolt, polishing them a bit, but I still don't know when.
User avatar
DeltaLeeds
 
Posts: 693
Joined: Fri May 06, 2011 12:45 pm
Location: In front of my computer.
Score: 38 Give a positive score

Re: Really new to this and game editor.

Postby lcl » Sun May 08, 2011 6:11 am

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
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Really new to this and game editor.

Postby Turon » Sun May 08, 2011 4:32 pm

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?
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: Really new to this and game editor.

Postby lcl » Sun May 08, 2011 4:39 pm

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. :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Really new to this and game editor.

Postby DeltaLeeds » Tue May 10, 2011 11:46 am

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
Currently: Semi-Active.
Working on: Maybe putting my test games in gamejolt, polishing them a bit, but I still don't know when.
User avatar
DeltaLeeds
 
Posts: 693
Joined: Fri May 06, 2011 12:45 pm
Location: In front of my computer.
Score: 38 Give a positive score

Re: Really new to this and game editor.

Postby 157pl » Sat May 14, 2011 9:02 pm

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
User avatar
157pl
 
Posts: 109
Joined: Thu May 13, 2010 10:49 pm
Location: AZ
Score: 3 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest