I am trying to get one sprite(the player) to trigger a function when colliding with another object that is getting cloned and put into random places within the play field. I have my player collider set to being a regular collider with a rigidbody2D attached. The object to collect here is marked as a trigger, is kinematic, has the OnTriggerEnter function attached(which most other scripts have at this point just to see if it would work), and not a single thing has changed anything about how the game runs or works or anything it seems. What am I missing?
Asked
Active
Viewed 80 times
-2
-
1If it's 2D are you using Collider2D and OnTeiggerEnter2D? – derHugo Apr 28 '21 at 20:04
-
Share your code and. Picture of the player components and whatever it is you should be hitting – BugFinder Apr 28 '21 at 20:44
-
@derHugo I had no idea that Collider2D and OnTriggerEnter2D was a thing, I'll try it and get back to you. – thatoneguyyouknow Apr 28 '21 at 23:15