karpo Posted January 8, 2014 Share Posted January 8, 2014 Hi, Is it possible to stop or freeze the Babylon engine? I don't want it and the WebGL completely to crash - perhaps just stop the render loop. Another question - kind of related: I have a game with some conditions to see if the player finished the maze or not. It's based on simply certain camera positions. How should I implement this properly? I could use IF statements in render loop to see if the the conditions are met. Is the renderloop the ideal place to put it? How to make a some sort of an event listener to see if the camera position is what I'm looking for? -Karpo Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 8, 2014 Share Posted January 8, 2014 Hello, you can just call: engine.stopRenderLoop() For your second question, the render loop is the right place but you can also use scene.registerBeforeRender(func) eps 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.