‘Class “Name” hides a global script’ error. I’ve looked around but can’t seem to really understand the solution. I’m currently making a second enemy and have used a “damageable” class name when the enemy is taking damage from the player. I want to reuse this script for my second enemy but get the error ‘Class “damageable” hides a global script’.
Don’t really know how to proceed from here.
Any and all help is appreciated
You can’t have two files that have the same class_name. You can make a base class with class_name damageable, then have your two enemies extend the base class.