Explorar o código

document fading

Nicolas Cannasse %!s(int64=9) %!d(string=hai) anos
pai
achega
18e0bd7b08
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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;