S
sjschindler
Guest
Hello yet again everyone. I am back with another forum post. This time, however, I have a question, not a problem.
My question is this: How would I make it so that when I draw a textbox to the screen(rectangle), regardless of the players position in the room, it would always be directly below the player?
Right now I have my room view set up to always follow the player. Say I want a quarter of the screen to have a grey rectangle drawn on it. I want that grey rectangle to be in the exact same position every time I talk to an NPC, similar to that to typical RPGs.
For example, if my room view is 300 x 200, and I have my player at position x 1472 and y at 352, I want it so that even if I was at x 500 and y 200, the textbox would always draw the same in the same position.
Any help would once again be extremely appreciated, you all have shown incredible support and knowledge on this and I already thank you all for reading and attempting to help!!
My question is this: How would I make it so that when I draw a textbox to the screen(rectangle), regardless of the players position in the room, it would always be directly below the player?
Right now I have my room view set up to always follow the player. Say I want a quarter of the screen to have a grey rectangle drawn on it. I want that grey rectangle to be in the exact same position every time I talk to an NPC, similar to that to typical RPGs.
For example, if my room view is 300 x 200, and I have my player at position x 1472 and y at 352, I want it so that even if I was at x 500 and y 200, the textbox would always draw the same in the same position.
Any help would once again be extremely appreciated, you all have shown incredible support and knowledge on this and I already thank you all for reading and attempting to help!!