Greetings GMC,
Simple issue. I know we can draw text such that it is center aligned. I'm hoping there's a way to draw a series of sprite images such that they are drawn with center alignment. A for loop can handle drawing a series of sprite images with left/right alignment (using something like x+/-xx*i), but I don't know if there's a way to draw them with center alignment.
To help illustrate the problem, here is an example of drawing one to five circles:
a) Left alignment (doable):
b) Center alignment (don't know how to do this):
EDIT: text alignment here is a bit off, but hope the general idea is clear.
I tried looking online, but didn't find anything. I'd like to avoid using sprites only to depict the alignment since its massively inefficient to do it that way.
Thanks in advance for any guidance.
Simple issue. I know we can draw text such that it is center aligned. I'm hoping there's a way to draw a series of sprite images such that they are drawn with center alignment. A for loop can handle drawing a series of sprite images with left/right alignment (using something like x+/-xx*i), but I don't know if there's a way to draw them with center alignment.
To help illustrate the problem, here is an example of drawing one to five circles:
a) Left alignment (doable):
Code:
1: O
2: OO
3: OOO
Code:
1: O
2: OO
5: OOOOO
I tried looking online, but didn't find anything. I'd like to avoid using sprites only to depict the alignment since its massively inefficient to do it that way.
Thanks in advance for any guidance.
Last edited: