PDA

View Full Version : Wall help plz



silverneo188
September 24th, 2006, 10:12 PM
how do i make walls and objects that cant be walked thru?

KIERIOSHIMOTO
September 25th, 2006, 08:24 PM
http://n99creations.com/?pID=my_examples&col=Blue&arch=getBounds_as_walls&ver=Flash_games that should work.

silverneo188
September 25th, 2006, 08:48 PM
it kinda works but it wont let me go above the object i want to jump on. it justs pushes me

here is the code im using


sonic_mc.onEnterFrame = function() {
while (circle_mc.hitTest(this.getBounds(_root).xMin, this._y, true)) {
this._x++;
}
while (circle_mc.hitTest(this.getBounds(_root).xMax, this._y, true)) {
this._x--;
}
while (circle_mc.hitTest(this._x, this.getBounds(_root).yMax, true)) {
this._y--;
}
} i want it to where i can go above it but it wont let me.
circle_mc is the object i want on top of
but not go thru.
i can jump but it pushes me to where i cant get above it.