diff --git a/getting_started/first_2d_game/04.creating_the_enemy.rst b/getting_started/first_2d_game/04.creating_the_enemy.rst index ab86bd7a0..bdd9c59bb 100644 --- a/getting_started/first_2d_game/04.creating_the_enemy.rst +++ b/getting_started/first_2d_game/04.creating_the_enemy.rst @@ -134,7 +134,7 @@ and randomly choose one of the three animation types: godot::Ref random = godot::RandomNumberGenerator::_new(); random->randomize(); _animated_sprite = get_node("AnimatedSprite2D"); - _animated_sprite->_set_playing(true); + _animated_sprite->set_playing(true); godot::PoolStringArray mob_types = _animated_sprite->get_sprite_frames()->get_animation_names(); _animated_sprite->set_animation(mob_types[random->randi() % mob_types.size()]); }