also yes i believe your assumptions about GML are correct, this is in a step event so it runs every frame