Wednesday 29 April 2009

Added features

Springboards




Springboards prepare you into the air much higher than normal jumping.



Code used

var springHeight:Number = 30;
// how high you jump on spring

if (_root.spring.hitTest(_x, _y+3, true)) {
// Jump
grav = -springHeight;
_y -= 4;
this.gotoAndStop(3);
_root.spring.gotoAndPlay(2);
}

No comments: