All pastes #275392 Raw Edit

jump

public text v1 · immutable
·published 2006-12-11 14:36 UTC
rendered paste body
}
_root.onEnterFrame = function() {
	if (Key.isDown(Key.UP)&& jump == "n") {
		jumpv=-12
		jump ="y"
		starty =_root.mario._y
	} 
	if (jump == "y"){
		jumpv += 2
		_root.mario._y +=jumpv
	}
	if (_root.mario._y == starty ){
		jump="n"
	}