Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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!
Develop games in your browser. Powerful, performant & highly capable.
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
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!