I am sure this has been asked 100 times before.
I am using a TP system to move the character around the game.
Whe it shoots the gun I am using types to generate the bullets which are a copy of a mesh.
This works very well and I am pleased with the result.
The problem occurs when I try to detect collisions. The collision works but then all goes pear shaped. What I want is for
a) the bullet to stop moving an disappear
b)An anmated texture to play on a sprite with the explosion at the point of the collision
c)Once the animation has completed I want things to disappear and reset.
All simple stuff you would think, but I get all sorts of issues detecting collisions, position of collisions. Getting the explosion to play completely.
Any example code would be appreciated.
Lee
I am using a TP system to move the character around the game.
Whe it shoots the gun I am using types to generate the bullets which are a copy of a mesh.
This works very well and I am pleased with the result.
The problem occurs when I try to detect collisions. The collision works but then all goes pear shaped. What I want is for
a) the bullet to stop moving an disappear
b)An anmated texture to play on a sprite with the explosion at the point of the collision
c)Once the animation has completed I want things to disappear and reset.
All simple stuff you would think, but I get all sorts of issues detecting collisions, position of collisions. Getting the explosion to play completely.
Any example code would be appreciated.
Lee