I am trying to follow a tutorial online and can not seem to find a solution to my error. I am trying to create a 2D combat game following this tutorial : https://www.youtube.com/watch?v=pHkp…f1nyZixzpzoPgK
I have duplicated my initial 2DSideScrollerCharacter it has the name 2DSideScrollerCharacter2. I am trying to do exactly the same code with both characters. However, the second one is giving an error saying it is not a valid array. Here is a photo.