Hi,
Assuming that the limit values range from 1 to 5, instead of subtracting i from the _y value, it would seem that you need to subtract i from the total limits value or...... 5-i.... in the for loop....
if (!this.stage.limit.hitTest(this.character._x, this.character._y-(5-i), true)) {
This may be incorrect as I've only glanced at the code and not tested it but worth a quick test to see if it might be the issue. I didn't follow the explanation of the jumping problem. Maybe post a demo file to show the problem.
A mind once stretched by a new idea never regains its original dimensions.
- Oliver Wendell Holmes
Bookmarks