PDA

View Full Version : programming lives (multiple trails)


wolfbluejosh
07-07-2009, 10:42 AM
Hey everyone,

I need help programming lives. The scene is a snowball machine (or person) is throwing a snowball at you and the point of it is to dodge the snowballs. If you were hit by it you die haha.

Veryuhbull
07-07-2009, 11:20 AM
you could do a few things but most involve a if/else command in which, if snowball is within 1 meter of player gameover. Or for several health points

If sphere(snowball) is within 1 meter of [player]
(death/lose animation)
else
do nothing

If you want health:
make health a varible(number)also you would want to display health as a 3d text vechiled to the camera.

{While:
{3d text set to Health: joined with (varible)as a string}
{If sphere(snowball) is within 1 meter of [player]
decrement health by 1
else
do nothing}
{If Health = 0
(death/lose animation)
else
do nothing}
}
It needs more but this is the basic.

wolfbluejosh
07-08-2009, 10:29 AM
Alright thanks. I took a look at the file you posted. i am guessing you had this problem as well

Veryuhbull
07-08-2009, 11:12 AM
Any time.