Code Help

what code do you use if you want an object to climb a wall or a ladder?

:huh:

this.myMC.onRelease= function (MC) {
gotoAndClimbing (MC);
}

lol. That’s pretty open question

PLEASE give better detial!

PLEASE ask better qestin!

There are so many ways to answer your question, there is no “climbALadder()” function in flash, it would be built by modifying locations on the stage. Please be more specific.

If you wanted the object to climb a ladder, you would move it’s Y position up as the user held the up arrow… so like

this._y += 5;