I'm trying to get though tutorial - 2D game on official site
I'm stuck at this step:
First, we get the list of animation names from the AnimatedSprite2D's frames property. This returns an Array containing all three animation names: ["walk", "swim", "fly"]
The code for this step:
var mob_types = $AnimatedSprite2D.get_sprite_frames().get_animation_names()
$AnimatedSprite2D.animation = mob_types[randi() % mob_types.size()]
So my problem is that it doesn't suggest getspriteframes() on a dropdown list when I type. It's just not there. I have no idea what I'm doing wrong. The only idea is that it's about version - I'm using 4.0. Documentation should be up-to-date, but maybe it's not?