11-15-2004, 09:47 AM
Hi all,
I have drawn a person using the drawPPolgon and drawTriangles commands etc while storing the coridinates in an array. The person is drawn at runtime so it is in the programme from the start. However I have a cube that moves towards the person (the cube moves by incrementing a variable) and when the cube comes into contact with the person then I want the person to be uncreated.
I believe the coding would be based upon the value of the variable, so say once the cube hits the person the variable will be at 100. So once the variable reaches 100 i want the person to disappear. Do you have any idea how i can achieve this? Thanks for any help :)
Oh btw, im not sure if this is important but the person is a stationary and in 2D.
I have drawn a person using the drawPPolgon and drawTriangles commands etc while storing the coridinates in an array. The person is drawn at runtime so it is in the programme from the start. However I have a cube that moves towards the person (the cube moves by incrementing a variable) and when the cube comes into contact with the person then I want the person to be uncreated.
I believe the coding would be based upon the value of the variable, so say once the cube hits the person the variable will be at 100. So once the variable reaches 100 i want the person to disappear. Do you have any idea how i can achieve this? Thanks for any help :)
Oh btw, im not sure if this is important but the person is a stationary and in 2D.