summaryrefslogtreecommitdiff
path: root/doc/classes/SpriteFrames.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/SpriteFrames.xml')
-rw-r--r--doc/classes/SpriteFrames.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/SpriteFrames.xml b/doc/classes/SpriteFrames.xml
index 195f3598d5..59a56e7ca6 100644
--- a/doc/classes/SpriteFrames.xml
+++ b/doc/classes/SpriteFrames.xml
@@ -73,9 +73,9 @@
<description>
Returns a relative duration of the frame [param idx] in the [param anim] animation (defaults to [code]1.0[/code]). For example, a frame with a duration of [code]2.0[/code] is displayed twice as long as a frame with a duration of [code]1.0[/code]. You can calculate the absolute duration (in seconds) of a frame using the following formula:
[codeblock]
- absolute_duration = relative_duration / (animation_fps * abs(speed_scale))
+ absolute_duration = relative_duration / (animation_fps * abs(playing_speed))
[/codeblock]
- In this example, [code]speed_scale[/code] refers to either [member AnimatedSprite2D.speed_scale] or [member AnimatedSprite3D.speed_scale].
+ In this example, [code]playing_speed[/code] refers to either [method AnimatedSprite2D.get_playing_speed] or [method AnimatedSprite3D.get_playing_speed].
</description>
</method>
<method name="get_frame_texture" qualifiers="const">