colliding problem
hi,
how do i make an actor stop when it collides with another actor when i use the collide attribute and actor bounces off the other actor is set to not moveable
cheers
how do i make an actor stop when it collides with another actor when i use the collide attribute and actor bounces off the other actor is set to not moveable
cheers
Comments
The quick and dirty way is to kill the actor on collision and the spawn a no moving graphic version in the same place. This has the advantage that there is very little code and it can be changed easily later for a more sophisticated solution. The disadvantage is that it will put a serious dint into the games speed.
The more sophisticated solution maybe to halt or reverse the motion vector of the actor at the time of collision.
Cheers
Valan
Roy.
cheers