I build my own asset with two triangles = star. After collide with the character I want destroy the hole star. How can I destroy the second star (without colliding) over coding? Thanks from Newbie ;-)
So you have two stars and want to destroy one by one after the collision with Character, right? 1. Add If Collide Node in your Star Object 2. In If Collide Choose your Character in Affected Asset 3. add new Remove Node and connect with If Collide.
Thanks. Exactly I have done this before. But I hang the star to high, so only one triangles was collided.
Connect the output of the working Collide component to the input of a Script component. In the Script's function signal() add these 2 lines of code. let other_triangle_ent = this.scene().find("OtherTriangle")[0]; other_triangle_ent.component("If Collide").emitSignal("Collide", true); I have not tested this, but I've used similar before. Of course, use your name for the other triangle where I have "OtherTriangle" Good luck @DanFarfan