sidebar features
sidebar content

Go Back   Blender Artists Forums > Game Engine > Game Engine Support and Discussion

Reply
 
Thread Tools
The Nunchako The Nunchako is offline
Member
 
Join Date: Sep 2007
Posts: 88
Ey, i are making a game, but a dont now how to make lifes in it:S
My plan is that the lifes to the blue player are down in right coner and the red player life are down in the left corner.
Someone there can help?

PS: i am a new to BGE and python script.
#1   Old 26-Oct-07, 13:13   
Reply With Quote


goldentaiji's Avatar
goldentaiji goldentaiji is offline
Member
 
Join Date: Jan 2004
Location: Virginia
Posts: 1,432
Hmm... If you haven't already, I recommend you learn the basics of blender first http://www.blender.org/tutorials-help/manuals-books/. ie: the interface, panels, tools, etc

Then the basics of the GE http://download.blender.org/document...GameReference/.

That's all since you're new to the BGE.

After that try my tutorial for making life bars in the GE.

Health Bar Tutorial
http://blender3dtutor.com/modules/sm...m.php?itemid=5

Health Bar - Extended (Hearts)
http://blender3dtutor.com/modules/sm...m.php?itemid=7

Have fun

Jason Lin
............................................
Blender3dTutor
http://blender3dtutor.com
Blender Aquarius
http://goldentaiji.googlepages.com/blenderaquarius-main
#2   Old 26-Oct-07, 13:43   
Reply With Quote
The Nunchako The Nunchako is offline
Member
 
Join Date: Sep 2007
Posts: 88
Quote:
Originally Posted by goldentaiji View Post
Hmm... If you haven't already, I recommend you learn the basics of blender first http://www.blender.org/tutorials-help/manuals-books/. ie: the interface, panels, tools, etc

Then the basics of the GE http://download.blender.org/document...GameReference/.

That's all since you're new to the BGE.

After that try my tutorial for making life bars in the GE.

Health Bar Tutorial
http://blender3dtutor.com/modules/sm...m.php?itemid=5

Health Bar - Extended (Hearts)
http://blender3dtutor.com/modules/sm...m.php?itemid=7

Have fun

Jason Lin
I found out how to make your health bar.
But how do i make so when my player hit the other man some of the life go of?
#3   Old 28-Oct-07, 17:19   
Reply With Quote
Mico27's Avatar
Mico27 Mico27 is offline
Member
 
Join Date: Jul 2007
Location: Canada, Quebec
Posts: 605
you can use an empty with a ray (with a short range) or you can use a collision sensor...

ex: Space (attack button) + ray or collison detect property "ennemy" ----- dammage activated
#4   Old 29-Oct-07, 14:58   
Reply With Quote
The Nunchako The Nunchako is offline
Member
 
Join Date: Sep 2007
Posts: 88
Dont understand.
Can you make an example?
I dunno how to make so it lost life on an other objeckt:S
#5   Old 29-Oct-07, 15:07   
Reply With Quote
Mico27's Avatar
Mico27 Mico27 is offline
Member
 
Join Date: Jul 2007
Location: Canada, Quebec
Posts: 605
I cant really right now but I'll provide you a sample boxing game that I use ray sensor to do dammage. I'll post it in likein 8 hours since im not on my computer right now
#6   Old 29-Oct-07, 15:25   
Reply With Quote
The Nunchako The Nunchako is offline
Member
 
Join Date: Sep 2007
Posts: 88
Does'nt matter anymore.
Now i have a new problem:S
I dont now how to make so the objeckt will be deleted when its have 1life. Someone there can help?
#7   Old 29-Oct-07, 19:12   
Reply With Quote
Social's Avatar
Social Social is offline
Member
 
Join Date: Nov 2005
Location: New Jersey, USA
Posts: 3,470
Quote:
Originally Posted by The Nunchako
I dont now how to make so the objeckt will be deleted when its have 1life. Someone there can help?
Use the end object actuator.
............................................
To the dumb question “Why me?” the cosmos barely bothers to return the reply: Why not?

- Christopher Hitchens
#8   Old 29-Oct-07, 20:36   
Reply With Quote
goldentaiji's Avatar
goldentaiji goldentaiji is offline
Member
 
Join Date: Jan 2004
Location: Virginia
Posts: 1,432
Player
sensor->controller->actuator

property[Changed, Prop: life] -> Exp[IF sensor(life<=1)] -> End Object

OR

property[Changed, Prop: life] ->
property[Equal, Prop: life, Val: 1) -> AND -> End Object

Jason Lin
............................................
Blender3dTutor
http://blender3dtutor.com
Blender Aquarius
http://goldentaiji.googlepages.com/blenderaquarius-main
#9   Old 29-Oct-07, 22:02   
Reply With Quote
The Nunchako The Nunchako is offline
Member
 
Join Date: Sep 2007
Posts: 88
Thanks!!!! it works
#10   Old 30-Oct-07, 06:33   
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 17:14.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Blender Headlines
Featured Artwork
Crocodile by Julia Korbut
Classic vintage look renders by HANGAR
Blending life - Old George by bigbad
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Social BlenderArtists