소스 검색

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;