mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Remove empty [b]Example:[/b] lines from the class reference
This commit is contained in:
@@ -54,12 +54,10 @@
|
||||
<param index="0" name="frame" type="int" />
|
||||
<param index="1" name="progress" type="float" />
|
||||
<description>
|
||||
The setter of [member frame] resets the [member frame_progress] to [code]0.0[/code] implicitly, but this method avoids that.
|
||||
This is useful when you want to carry over the current [member frame_progress] to another [member frame].
|
||||
[b]Example:[/b]
|
||||
Sets [member frame] the [member frame_progress] to the given values. Unlike setting [member frame], this method does not reset the [member frame_progress] to [code]0.0[/code] implicitly.
|
||||
[b]Example:[/b] Change the animation while keeping the same [member frame] and [member frame_progress].
|
||||
[codeblocks]
|
||||
[gdscript]
|
||||
# Change the animation with keeping the frame index and progress.
|
||||
var current_frame = animated_sprite.get_frame()
|
||||
var current_progress = animated_sprite.get_frame_progress()
|
||||
animated_sprite.play("walk_another_skin")
|
||||
|
||||
Reference in New Issue
Block a user