Your Godot version:
4.1
Issue description:
frames needs to be sprite_frames. The picture of code it correct, but the explanation of it isn't.
URL to the documentation page:
https://docs.godotengine.org/en/stable/getting_started/first_2d_game/04.creating_the_enemy.html
If you know how to fix the issue you are reporting please
consider opening a pull request. We provide a tutorial on
using git here: https://docs.godotengine.org/en/stable/community/contributing/pr_workflow.html,
writing documentation at https://docs.godotengine.org/en/stable/community/contributing/docs_writing_guidelines.html
and contributing to the class reference here: https://docs.godotengine.org/en/stable/community/contributing/updating_the_class_reference.html