|
|||||||
![]() |
|
|
Thread Tools |
|
|||
|
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
|
|||
|
|
|
||||
|
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
|
|
|||
|
Quote:
But how do i make so when my player hit the other man some of the life go of? |
|||
|
#3
|
|
||||
|
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
|
|
|||
|
Dont understand.
Can you make an example? I dunno how to make so it lost life on an other objeckt:S |
|||
|
#5
|
|
||||
|
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
|
|
|||
|
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
|
|
||||
|
Quote:
............................................
To the dumb question “Why me?” the cosmos barely bothers to return the reply: Why not? - Christopher Hitchens |
||||
|
#8
|
|
||||
|
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
|
|
|||
|
Thanks!!!! it works
|
|||
|
#10
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|