-------------------------------------------------------------------------------- -- Handler.......... : onInit -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function SimpleAnimation_Character.onInit ( ) -------------------------------------------------------------------------------- local o = this.getObject ( ) if ( object.hasController ( o, object.kControllerTypeAnimation ) ) then animation.changeClip ( o, 0, 0 ) animation.setPlaybackMode ( o, 0, animation.kPlaybackModeLoopMirrored ) animation.setPlaybackLevel ( o, 0, 1 ) animation.setPlaybackKeyFrameBegin ( o, 0, 0 ) animation.setPlaybackKeyFrameEnd ( o, 0, 80 ) animation.changeClip ( o, 1, 3 ) animation.setPlaybackMode ( o, 1, animation.kPlaybackModeLoop ) animation.setPlaybackLevel ( o, 1, 0 ) animation.setPlaybackKeyFrameBegin ( o, 1, 0 ) animation.setPlaybackKeyFrameEnd ( o, 1, 80 ) end -------------------------------------------------------------------------------- end --------------------------------------------------------------------------------