-
-
Notifications
You must be signed in to change notification settings - Fork 643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Falling Bug #16
Comments
oooh, thanks for reporting this ! But yes for sure you certainly right, I'll look into it. How did you fix this in your flash engine ? And thank you, melonJS is for sure not yet perfect, but I'm happy you like it ! |
Following email discussion with nicnacks on this, For those having the same issue, and while waiting for this to be managed correctly, you can use the setMaxVelocity function to cap the y velocity. |
My question has similar contexts, but how can you kill your character when he/she has falling through a hole/pit. Say you are jumping from platform to platform over a big whole, and you miss the next platform and fall "to your death." What do you need to add in JavaScript to handle this issue? What I want to do is just restart the level. |
Actually you have two options : 1/ check the y position of the player, if y > than the level height, you can assume that you felt into a pit/hole. // check if we fall somewhere 2/ you can use a invisibleEntity, and make it die or go to the next level when the player touch it I can send you alex4 source code if you want, just send me an email to [email protected] |
I created a new ticket for doing collisions in multiple phases, mostly as a performance improvement. But it will also solve this bug by taking the guesswork out of the collision resolutions: #103 |
should be covered through #538, closing this one |
Reopened, since this is still an issue, as demonstrated here (using melonJS build 518 from Travis-CI): http://jsfiddle.net/4s1rauye/ |
To make the ball properly hit the wall. Lower the velocity on line 59 like this: this.body.vel.set(12, 0); Then note that the ball still falls through the floor (which is only 1px thick) |
ok, I'm closing this one for the following reasons :
|
Hi,
First, this is a great javascript engine. I ported an old platform game I made in flash. However, there is one critical bug when falling from high places. For example, when jumping from high platform the hero goes through a solid tile. My theory is this has something to do with the acceleration of the fall greater than the height of the solid tile, as I encountered this kind of bug with my flash engine from long time ago. Just hoping you could check this bug, that would be really cool.
thanks! Really nice game engine.
The text was updated successfully, but these errors were encountered: