This is a script that I am doing on a game. I try to put this script on the char so he will fall on the platform rather than falling through the platform and out of the stage.
But it doesnt work.
Any help will be great
if (_root.ground.hitTest(this._x, this._y, true) && jumping==1) {
this._y += 2;
trace("char hits platform");
jumping = 0;
falling = 0;
}