Question by
GameMaker1111 · May 28, 2020 at 10:58 AM ·
arraymaterialsruntimerandom.rangeinstances
How To Compare Collider Material To A Specific Material
Hello I know there is a lot about this but I have not found anything to solve my problem. I randomly assign my materials from an array to an array of game objects and then I check if the player collides with a material. This is were things go wrong I've changed from using the material to shared material I am not sure if that works if you are going through multiple materials or if it only works for one material. I have used get instance id and every time I debug the value and stop playing and play again the values are different? Please tell me if you need more information and thank you.
what.png
(10.9 kB)
random.png
(36.9 kB)
Comment