- Home /
I have a problem with the infinite runner tut by mike geig
so mike geig made an brilliant tutorial but my destroyer dosent work.. the game dosent pause and i done everything right i also set the character to player tag please help.
pictures below
Answer by JrodR87 · Apr 15, 2014 at 08:18 PM
You have the wrong Method. It should be OnTriggerEnter2D, not OnTrigger2D.
Hope this help. If not let me know and i'll see if something else is wrong.
thanks for anwsering but it was OnTrigger2D with capital i put onTrigger2D
You would also need to add Enter, Stay or Exit to use the Unity built in functions for handling this. https://docs.unity3d.com/Documentation/ScriptReference/Collider.html
For your case, it should be OnTriggerEnter2D.
Yep, Jrod is correct. Also, thanks for liking the tutorial!
Your answer
Follow this Question
Related Questions
Infinite Runner Tutorial - Destroyer Problem 2 Answers
How to create a "save me" feature like subway surfers .temple run, etc ? 0 Answers
Object Pooling: deactivating vs. moving 1 Answer
Need help identify framerate issue in Profiler. 0 Answers
trying to make infinte runner,but cannot position tracks. 3 Answers