Hey folks,
testing on android i noticed that sometimes my prototype crashes without an obvious reason. The loogic runns pretty much in a loop and nothing SHOULD change.
Also it crashes completly, animation are still playing, but the playerbox is not moving anymore.
here is what the browser console says from the one time i was able to reproduce this on pc:
gyazo.com/ede4ef7e74ca3b67cb0dbccd0fc8b509
function PickDistance(which,x,y){const sol=this.GetCurrentSol();const instances=sol.GetInstances();if(!instances.length)return false;let inst=instances[0];let wi=inst.GetWorldInfo();let pickme=inst;let dist2=C3.distanceSquared(wi.GetX(),wi.GetY(),x,y);for(let i=1,len=instances.length;i<len;++i){inst=instances;wi=inst.GetWorldInfo();const d2=C3.distanceSquared(wi.GetX(),wi.GetY(),x,y);if(which===0&&d2<dist2||which===1&&d2>dist2){dist2=d2;pickme=inst}}sol.PickOne(pickme);return true}
Could anyone point me in the right direction to what this could be related?
Normally when i have a problem i can always fix it in construct, but this somehow could be an engine bug maybe?
Kind regards
Update: I found out that it has something to to with the tap gesture. I read swipes left right up down. Also i have a action "on tab gesture" when i do a lot of tab gestures and start a swipe at the same time it crashes for some reason... I actually made a check that that the tap gesture can only fire when its not in touch, but that did not help. i somehow can make it crash...
Seems to be a bit buggy, ill try to find a workarround...