hey, sure i can tell you, it's a method i made up myself,
you can also contact me on msn
well it's a pretty long script i checks how far the floor is away from the character,
you have to change the x values so that it fits to your character:
<code>
// Jumping
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE) && !jumping) {
vel_y = 32;
jumping = true;
}
// Jump action
if (jumping == true) {
vel_y -= 4;
if (vel_y<=-10) {
vel_y = -10;
}
this._y -= vel_y;
}
// Ground hitting test script
if (_root.ground.boden.hitTest(this._x, this._y+7, true)) {
vel_y = 0;
this._y -= 20;
jumping = false;
} else {
if (_root.ground.boden.hitTest(this._x, this._y+9, true)) {
vel_y = 0;
this._y -= 18;
jumping = false;
} else {
if (_root.ground.boden.hitTest(this._x, this._y+11, true)) {
vel_y = 0;
this._y -= 16;
jumping = false;
} else {
if (_root.ground.boden.hitTest(this._x, this._y+13, true)) {
vel_y = 0;
this._y -= 14;
jumping = false;
} else {
if (_root.ground.boden.hitTest(this._x, this._y+15, true)) {
vel_y = 0;
this._y -= 12;
jumping = false;
} else {
if (_root.ground.boden.hitTest(this._x, this._y+17, true)) {
vel_y = 0;
this._y -= 10;
jumping = false;
} else {
if (_root.ground.boden.hitTest(this._x, this._y+19, true)) {
vel_y = 0;
this._y -= 8;
jumping = false;
} else {
if (_root.ground.boden.hitTest(this._x, this._y+21, true)) {
vel_y = 0;
this._y -= 6;
jumping = false;
} else {
if (_root.ground.boden.hitTest(this._x, this._y+23, true)) {
vel_y = 0;
this._y -= 4;
jumping = false;
} else {
if (_root.ground.boden.hitTest(this._x, this._y+25, true)) {
vel_y = 0;
this._y -= 2;
jumping = false;
} else {
if (_root.ground.boden.hitTest(this._x, this._y+26, true)) {
vel_y = 0;
this._y -= 1;
jumping = false;
} else {
jumping = true;
}
}
}
}
}
}
}
}
}
}
}
<code>
not perfect, but works fine for me =D
see ya