H
Heropants
Guest
Hi, I know in the past I've used functions like "draw_circle" (etc.) and have never noticed it breaking the vertex batch. However, I just noticed that every time I use any sort of function to draw a shape, it breaks the vertex batch. For instance, if I have 20 objects that all have "draw_rectangle_color" in their draw event, the vertex batch number in the debugging overlay will increase by 20.
Obviously this makes drawing shapes with the draw shape functions worthless unless I'm just drawing a few. Am I just using these functions wrong? Does anyone have any other ideas on how I might draw shapes that are meant to alter their size in game (I'm using these shapes like hp bars over the enemies, etc.).
Just as a note, I have had only 1 object draw all the shapes for 20 different objects in it's draw event to see if that kept all the shapes in one vertex batch. But I got the same results as if all 20 objects drew the shape in their own draw event.
Thanks in advance!
Obviously this makes drawing shapes with the draw shape functions worthless unless I'm just drawing a few. Am I just using these functions wrong? Does anyone have any other ideas on how I might draw shapes that are meant to alter their size in game (I'm using these shapes like hp bars over the enemies, etc.).
Just as a note, I have had only 1 object draw all the shapes for 20 different objects in it's draw event to see if that kept all the shapes in one vertex batch. But I got the same results as if all 20 objects drew the shape in their own draw event.
Thanks in advance!