Okay, this isn't even GScript so don't laugh..
(Don't know what it is.. just some random theory.)
Can't you do like this?
NPC Code:
Class: Baddies.
timeout = 0.05;
if (timeout)
{
-- Stolen --
if (player.x in |this.x, this.x + this.width|)
{
if (player.y in |this.y, this.y + this.height|)
{
//Hit detection =o
}
}
-- /Stolen --
timeout = 0.05;
}
then in the baddie script do like "join baddies;" ?