Alright this may be a stupid question but I could use the answer. I want to be able to group all my enemies into one variable. So I could say
if (this.hitTest(enemys)) {
enemyhealth -= 1
}
instead of having to type the script out for each enemy.
I think I have to use an array but I not sure. All the array tutorials didn’t seem to have what I wanted.