AnimatedTextureSetFrameDelay Method |
Note: This API is now obsolete.
Sets an additional delay (in seconds) between this frame and the next one, that will be added to the time interval defined by Fps. By default, frames have no delay defined. If a delay value is defined, the final time interval between this frame and the next will be 1.0 / fps + delay.
For example, for an animation with 3 frames, 2 FPS and a frame delay on the second frame of 1.2, the resulting playback will be:
Frame 0: 0.5 s (1 / fps) Frame 1: 1.7 s (1 / fps + 1.2) Frame 2: 0.5 s (1 / fps) Total duration: 2.7 s
Namespace: Godot
[ObsoleteAttribute("SetFrameDelay is deprecated. Use the Frame255__delaySec property instead.")] public void SetFrameDelay( int frame, float delay )
[Missing <param name="frame"/> documentation for "M:Godot.AnimatedTexture.SetFrameDelay(System.Int32,System.Single)"]
[Missing <param name="delay"/> documentation for "M:Godot.AnimatedTexture.SetFrameDelay(System.Int32,System.Single)"]