Hi Edson,
thanks for sharing your script. First of all, very cool camera movement!
Regarding the issue on mobile. The problem is that the
setTimeout() method isn't available on mobile. This method is just accessible in the browser. There it is exposed by the global
window object which is provided by the browser environment. But the CoSpaces mobile app isn't running in the browser. Therefore this method doesn't exist there. In general, if you want that your script is running on mobile like expected don't use any Web APIs.
So to make your code work on mobile replace the setTimeout() method with Scene.schedule(). Which behaves the same. The difference is that it takes seconds instead of milliseconds as the second argument and it's not optional, you need to pass it.
Here is the corrected ruta() function:
function ruta(){
Scene.schedule(Conejo, 0);
Scene.schedule(Tiempo1, 3);
Scene.schedule(Tiempo2, 4.5);
Scene.schedule(Tiempo3, 6.5);
Scene.schedule(Tiempo4, 8);
Scene.schedule(Tiempo5, 10);
Scene.schedule(Tiempo6, 12.5);
Scene.schedule(Tiempo7, 16);
Scene.schedule(Tiempo8, 19.5);
Scene.schedule(Tiempo9, 21.1);
Scene.schedule(Tiempo10, 23.2);
}
Benjamin