I already have such a code:
Bullet on collision with another object--> bullet destroy
And I want to do this:
Bullet on collision with object 2-->bullet should not be destroyed
Thank you!
It is like this by default. If you said bullet on collision with object A > destroy, why would it be destroyed on collision with object B?
Develop games in your browser. Powerful, performant & highly capable.
So I want to do this:
ObjectA on collision with objectB-->bullet should not be destroyed
ObjectA=Caracter
ObjectB=stronger weapon (the bullet is not destroyed when it comes in contact with the enemy)
The bullet does not get destroyed unless you tell it to be destroyed, so it's fine?
Yes, and how do I do this?
Did you clone the object? Or make sure the object has otherwise a unique name? If they're just copied, it will still destroy the bullet since they're colliding with the same instance.
Alternatively, post a sample of your code!