- Home /
My Code destroys all instances instead of the instance colliding with my player Object
Hi,
I'm using Bolt to program this game. A player sphere with a rigidbody and collider component attached to it rolls down a plane and collides with cubes.
When the player collides with the pick up cube however, all the instances in the level disappear. The Pickup macro is attached as a flow machine to the pickup instance.
Can someone tell me what's going wrong?
Thank you
Answer by HemK · Aug 16, 2020 at 11:45 AM
I fixed the problem.
I used the collidergame Object output from the Superunit and added that to the input of the destroy object node and now its working properly, although, I'm not sure why.
Your answer
Follow this Question
Related Questions
Keeping track of multiple instances of one prefab 3 Answers
Find all instances of a script in the scene? 1 Answer
NullReferenceException with a text array 1 Answer
How to change a large number of booleans as fast as possible without sacrificing framerate? 1 Answer
why when i try to add my script to the "player" it says can not can not add script 1 Answer