Search the Community
Showing results for tags 'detect'.
-
Hi, When the browser tab is out of focus, the game will pause, we all know that default setting. But is there a way to detect whenever it happen? I have my own countdown timer and when the game is paused this way, my timer still works so I need to detect it's status to pause my timer as well. Thanks, Jody
- 11 replies
-
- visibility
- visibilityChange
-
(and 1 more)
Tagged with:
-
So, I'm working on implementing wall jumping in my game with P2 physics and in order to do that, I need to be able to set a boolean to true if a collider (sensor in my case) is colliding with any object and false if it is not. I cannot figure out how to do the latter because I'm not seeing anything that is called when an object uncollides with objects. Anyone know of a solution? Thanks! Edit: I'm thinking of also implementing the Box2D physics system because that has implementation for colliding and uncolliding.
-
Hi there, I'm back Is there a way to detect if a mesh has animations playing and cancel them? I'm using the following code to animate the emissive color of my meshes on mouse over, but it doesn't seem to be pushing the animation to mesh.animations: BABYLON.Animation.CreateAndStartAnimation('fadingIn', objectUnderPointer, "material.emissiveColor", 30, 10, objectUnderPointer.material.emissiveColor, fullEmissive, 0); Also the Animation class doesn't seem to have a stop method so I'm not sure where to go from there. Thanks!
-
I was wondering if anyone knows a way I can detect if a tween is running for a certain amount of time. I've got a loading icon which needs to trigger an event if it runs for a certain length, kind of like a timeout. If anybody knows a good way to achieve this please share!
-
How would I go about detecting collosion of a player and a block(image)? The player currently collides with the block but I want to know how I could restart the game after this happens.
- 9 replies
-
- javascript
- detect
-
(and 3 more)
Tagged with: