New Coder: Imported 3D animation not declared, error counter continously rising nonstop.

Godot Version

4.6 stable

Question

I’m running into issues getting a 3D character to animate, and also the errors counter continuously increasing without end. I’m following the code from https://youtu.be/gLFgr6St7o8?si=GeYW2BY_S8uEmAK4 and referencing this for visual effects https://youtu.be/PBIPJdEECWg?si=2JZiJ2ug_oMxwxZS

I am using the free animation and mesh by KayKit https://kaylousberg.itch.io/kaykit-adventurers and the pluggin for fbx files found here https://github.com/Tydorius/fbx_batch_importer - I later realized I don’t need the plugin for what I’m doing but it’s still in my code.

Issue: I’m struggling to find information to understand the purpose of the code below (found here in the video) and when I try his method of animating it says “Identifier [x] not declared in the current scope.” I suspect my problems may be arising from the animation files and/or maybe the type of node needs to be changed from 3D node to a 3D meshinstance.

onready anim: AnimationPlayer = $SubViewportContainer/Rogue_Hooded.get_node(_____)

Goal: Use 3D models with animation and rotation in a 2D scene (no sprites). Working in low viewport sizes to replicate pixel art styles.

This is my Godot game file: 2d-platformer
It’s pretty small, just has character movement and visual code.

I’m looking for documents, tutorials and/or advice to explain my issue and how to fix it. It’s probably a simple fix but I keep hitting road blocks.
Thanks!

What does the actual full error say?

Hey, sorry currently out of town / away from PC. Will upload screenshot monday evening for exact error text. Its more than one I’m running into.

In the video you linked they use a character model that already contains an AnimationPlayer3D.

The characters from KayKit don’t include that AnimationPlayer3D - you have to add it yourself.

Kay Lousberg has a video that explains how to do this: