because hitboxes go by the general size of a clip rather than the visuals of the clip, I have to have multiple clips for my game.
but in code, how do I group clips in order to make collision detection less of a nightmare?
and can I do it with an array?
this is the code i have written:
var Platforms = [“Platform”,“Platform2”,“Platform3”]
if (this.hits(Platforms)){
//this is meant to do nothing
} else {
gotoAndStop(1)
}
that gotoAndStop(1) is just there for me to know if it’s working or not.
and it obviously isn’t working.
any suggestions on how to make this work?