(日本語 | English)

Ukiuki

Ukiuki is ActionScript3.0 library to move objects.

Download

Documentation

Methods

tween()

//import org.libspark.ukiuki.Ukiuki;
//import org.libspark.ukiuki.ease.Back;

Ukiuki.tween( sprite, {  x:100, y:100  }, { ease:Back.OUT, time:120 } );

yoyo()

//import org.libspark.ukiuki.Ukiuki;
//import org.libspark.ukiuki.ease.Elastic;

Ukiuki.yoyo( sprite, {  x:100, y:100  }, { ease:Elastic.IN_OUT, repeat:-1 } );

zigzag()

//import org.libspark.ukiuki.Ukiuki;
//import org.libspark.ukiuki.ease.Sine;

Ukiuki.zigzag( sprite, {  x:10  }, { ease:Sine.OUT, time:10, repeat:-1, intervals:[0,0,40,0] } );

random()

//import org.libspark.ukiuki.Ukiuki

Ukiuki.random( sprite, { x:10, y:10  }, { skipUpdates:3, limit:20 } );

accel()

//import org.libspark.ukiuki.Ukiuki
//import org.libspark.ukiuki.jobs.OutType

Ukiuki.accel( sprite, { x:3, y:5 }, { outType:OutType.BOUND }, { x:0, y:0 }, { x:400, y:400 } )

chase()

//import org.libspark.ukiuki.Ukiuki
//import org.libspark.ukiuki.jobs.OutType

Ukiuki.chase2D( sprite, point, { spring:0.01, inertia:0.95, outType:OutType.CYCLE }, { x:0, y:0 }, { x:400, y:400 } )

sequence()

//import org.libspark.ukiuki.Ukiuki
//import org.libspark.ukiuki.jobs.UkiSequence

Ukiuki.sequence( sprite, [[ "x",400,10 ],[ "y",400,10 ],["x",0,10],["y",0,10],[UkiSequence.LOOP]] )

History

2011/02/09 v0.0.1release

Credit

Program:shohei909

License

http://i.creativecommons.org/l/by/2.1/jp/88x31.png

Creative Commons 表示 2.1 日本 License