I am as new as they come in Godot having started just a week ago, so please forgive my naivete. I really need some help here though.
I created a simple platformer while loosely following an online tutorial. I essentially had no problems until I tried to duplicate a scene of an "enemy" character. For background, the enemy character has a walking animation when is_on_floor = true, and a falling animation when is_on_floor = false.
My issue first formed when I discovered that when there was only one enemy, it's animation was fine (switching between the walking and falling animation properly at the right times). But when I duplicated enemy into the main scene, the first enemy's movement became jittery as it was switching between the walking animation and the falling animation. The second duplicated enemy played no animation at all when walking or falling.
Long story short, what I realized was happening was that the first enemy was trying to apply the is_on_floor from the duplicated enemy and itself at the same time, while the duplicated enemy wasn't taking in any information.
I tried distinguishing between the two duplicate enemy scripts, but what I do to one script does automatically with the other, as if there was only ever one script. I know that the original scene is where the two duplicated enemy scenes came from, but isn't there a way to alter one script without altering the other?
I have tried to look up the solution everywhere and nobody else seems to have this problem. I have come to the conclusion that either I am an idiot or the program is bugging out.
Can anybody help me?