瀏覽代碼

document fading

Nicolas Cannasse 9 年之前
父節點
當前提交
18e0bd7b08
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      h2d/Anim.hx

+ 6 - 0
h2d/Anim.hx

@@ -6,6 +6,12 @@ class Anim extends Drawable {
 	public var currentFrame(get,set) : Float;
 	public var speed : Float;
 	public var loop : Bool = true;
+	
+	/**
+		When enable, fading will draw two consecutive frames with alpha transition between
+		them instead of directly switching from one to another when it reaches the next frame.
+		This can be used to have smoother animation on some effects.
+	**/
 	public var fading : Bool = false;
 	var curFrame : Float;