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
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?
So I want to do this:
ObjectA on collision with objectB-->bullet should not be destroyed
ObjectB=stronger weapon (the bullet is not destroyed when it comes in contact with the enemy)
Develop games in your browser. Powerful, performant & highly capable.
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!