how can i stop my mc falling into the area i have my hitTest??
here is the necesarey code:
my hero MC is 25 x 25 pixelsCode://Gravity onClipEvent (enterFrame) { gravity++; if (gravity>10) { gravity--; } _y += gravity; } //hitTest (level) onClipEvent (enterFrame) { if (_root.level.hitTest(this._x+12.5, this._y+12.5, true)) { gravity = 0; this._y -= 1; } }




Reply With Quote