I'm new to coding (just a little bit of C#) and the "Dodge the Creeps" tutorial has me running into a road block I can't seem to get the enemy animation to play. It just drops into oblivion, unmoved. Any help would be greatly appreciated.

extends RigidBody2D

@export var min_speed = 150.0
@export var max_speed = 250.0

func _ready():
$AnimatedSprite2D.playing = true
var mob_types = $AnimatedSprite2D.frames.get_animation_names()
$AnimatedSprite2D.animation = mob_types[randi() % mob_types.size()]

    CapableAmoeba the "Dodge the Creeps" tutorial has me running into a road block I can't seem to get the enemy animation to play.

    I don't really understand — where is this code from? The documentation describes it differently.

    What do you need the speed for? You don't use it there.

    To make the code stand out correctly, you need to put ``` above and below the code.

    ```
    code
    ```

    extends RigidBody2D
    
    
    func _ready():
    	var mob_types = $AnimatedSprite2D.sprite_frames.get_animation_names()
    	$AnimatedSprite2D.play(mob_types[randi() % mob_types.size()])

    The min_speed and max_speed were formerly in the tutorial, and used when the mob was spawned by a different script.
    https://docs.godotengine.org/en/3.2/getting_started/step_by_step/your_first_game.html#enemy-script

    That's the version of Godot I was using when I did that tutorial.

    CapableAmoeba

    I suggest making sure that you're using the official tutorial for your version of Godot. If it doesn't work, review the tutorial to see if you made any mistakes. Here's the version for Godot 4.1:
    https://docs.godotengine.org/en/4.1/getting_started/first_2d_game/index.html

      DaveTheCoder The min_speed and max_speed were formerly in the tutorial, and used when the mob was spawned by a different script.

      Yeah, but that's in the old documentation — without @. But here it's a mixture.

      I was working off of an older video so this is super helpful. Thanks for the responses!