guys , i have a problem with my fighting game , i use game engine blender 2.59 .
i have 3 objects , it use BGE realtime font and it work fine
time (battle time 60s)
health player 1
health player 2
the problem is , how to make this thing ?
when time = 0 ,
if health player 1 > health player 2 , set scene ‘player 1 win’
if health player 1 < health player 2 , set scene ‘player 2 win’
if health player 1 = health player 2 , set scene ‘draw’
Yup, that’s exactly what you are trying to do.
What is health?
How about making health an integer property?
Then you can use the property logic bricks for sensing, and the scene actuators.
What is TIME?
Is it a number that keeps increasing at a constant rate?
How about a timer property?
It seems you already know what to do. I’m not sure if you’d rather use python or logic bricks…
But, I think the most conservative way of accomplishing this would be to use Messages. Like, send a message to a text object in the Game Results scene - notifying that object, as well as others, that (this happened). You could make the text object to change its text, depending on who won. This would save space and memory.
i confused to connect the logic brick and send a message , so the time know the lowest health , can u fix it (if u not busy)
so i can learn it ,
nb : sorry for the bad thing in that game (like the model :o) , i’m still new in this thing , but im interesting in that and want to learn more and more
here the simple .blend file i made ,
please help configure the logic brick this thing
when time = 0 ,
if health player 1 > health player 2 , set scene 'player 1 win'
if health player 1 < health player 2 , set scene 'player 2 win'
if health player 1 = health player 2 , set scene 'draw'
oh i get it , i found the space sensor ,
but why u used empty ? why not in the cube ?
and why the space sensor connect to message , why not go to next scene ?
edit :
hahha , i found how to show the player.health in the corner ,
but it will not show when export to exe , i need to make realtime font ,
monster , what the different , if the sensor i not set it to true and false ,
why u make the message sensor true ?