When I attach a script to a second character body 2d I have, I get the Script inherits from native type ‘CharacterBody2D’, so it can’t be assigned to an object of type: ‘Sprite2D’ error.
I can confirm the script is attached to a CharacterBody2D.
Could it be a bug? I have looked at the different threads on this, but they dont seem to help here.
Here you can see that only characterbody2d nodes have scripts attached
I tried something, I made the script blank and I now get a different error
Script inherits from native type ‘RefCounted’, so it can’t be assigned to an object of type: ‘Sprite2D’
Thanks, took a look at another scene in the code, and there was a rogue script that attached to a sprite in that separate scene. Not sure why the error only came up when I added a new script to the Cow CharacterBody2d, but it seems like the rogue script has been lingering there for a while and started throwing the error when I wanted to create a new script.