Fast tapping switches to first sceen....which is not what I want
Hi everybody,
I have a strange problem. I am almost done with my game for mobile. My kids tested it and they tap really fast on the tablet. And everywhere....like kids do.
And when they do that, the scene they play switches to the first scene of the game....I can reproduce this and it happens in more scenes. But I can't find any reason why this happens. There are no colliders that can interact....so I don't know what is happening....
Maybe someone had this experience. I hope someone has a suggestion.
Thanks in advance!
Cheers,
Jonah
hello, can you put a debug.log just before the line you use for changing scene and check when the method is called?
The thing is that I don't really know what triggers this. There is a click in that area which leads the player to the next level. If you only click once or twice it will lead you to the new next scene. But if you click it really fast, somehow you go to the beginning of the game.
I do get this message in de debug.log when clicking the object that leads to the next level. But I don't know if this has anything to do with what happens....it might...
START $$anonymous$$ESSAGE
Animator is not playing a Playable UnityEngine.Animator:SetBool(String, Boolean) c__Iterator14:$$anonymous$$oveNext() (at Assets/Code-deuren/Code-kaartvalt/NieuweScene$$anonymous$$amer.cs:33) UnityEngine.$$anonymous$$onoBehaviour:StartCoroutine(IEnumerator) NieuweScene$$anonymous$$amer:OnTriggerEnter2D(Collider2D) (at Assets/Code-deuren/Code-kaartvalt/NieuweScene$$anonymous$$amer.cs:27)
END $$anonymous$$ESSAGE
Can you share the code youo are using for changing between scenes?
Answer by jonahsrocket · Mar 01, 2019 at 08:34 AM
I finally found the cause. After deconstructing the whole scene, the problem was still there.... So it had to be something different. And it was. Is was a go back to start button that was loading in the next scene. So if you tap the screen really fast you would hit that button while it was loading.... This happened in two scenes. It's a silly cause, I know. But I am happy I found out. Thanks anyway for answering!!!!
Cheers,
Jonah