Message in window overlaps when updating HELP() [on hold]
-1
$begingroup$
The question is how do I get the text that prints not to overlap
def msgwintexts(text, font):
msgwinsurfs = font.render(text, True, black)
return msgwinsurfs, msgwinsurfs.get_rect()
def displayscore(text):
Bigmsgs = pygame.font.Font('freesansbold.ttf', 18)
msgwinsurfs, msgwinrects = msgwintexts(text,Bigmsgs)
msgwinrects.center = ((100),(100))
window.blit(msgwinsurfs, msgwinrects)
pygame.display.update()
def score():
point = 1
while point > 0:
time.sleep(1)
point = point + 1
displayscore('Score: ' + str(point))
python pygame
New contributor
$endgroup$
put on hold as off-topic by Ludisposed, Sᴀᴍ Onᴇᴌᴀ, Vogel612♦ 6 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Ludisposed, Sᴀᴍ Onᴇᴌᴀ, Vogel612
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
-1
$begingroup$
The question is how do I get the text that prints not to overlap
def msgwintexts(text, font):
msgwinsurfs = font.render(text, True, black)
return msgwinsurfs, msgwinsurfs.get_rect()
def displayscore(text):
Bigmsgs = pygame.font.Font('freesansbold.ttf', 18)
msgwinsurfs, msgwinrects = msgwintexts(text,Bigmsgs)
msgwinrects.center = ((100),(100))
window.blit(msgwinsurfs, msgwinrects)
pygame.display.update()
def score():
point = 1
while point > 0:
time.sleep(1)
point = point + 1
displayscore('Score: ' + str(point))
python pygame
New contributor
$endgroup$
put on hold as off-topic by Ludisposed, Sᴀᴍ Onᴇᴌᴀ, Vogel612♦ 6 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Ludisposed, Sᴀᴍ Onᴇᴌᴀ, Vogel612
If this question can be reworded to fit the rules in the help center, please edit the question.
1
$begingroup$
Welcome to Code Review! Unfortunately this post is off-topic for this site. Please read What topics can I ask about here? - note that it states "If you are looking for feedback on a specific working piece of code...then you are in the right place!" Also, when posting your question, there should have been text on the side that read "Your question must contain code that is already working correctly..." When you have fixed the code, please update it here and it can be reviewed."
$endgroup$
– Sᴀᴍ Onᴇᴌᴀ
6 hours ago
add a comment |
-1
-1
-1
$begingroup$
The question is how do I get the text that prints not to overlap
def msgwintexts(text, font):
msgwinsurfs = font.render(text, True, black)
return msgwinsurfs, msgwinsurfs.get_rect()
def displayscore(text):
Bigmsgs = pygame.font.Font('freesansbold.ttf', 18)
msgwinsurfs, msgwinrects = msgwintexts(text,Bigmsgs)
msgwinrects.center = ((100),(100))
window.blit(msgwinsurfs, msgwinrects)
pygame.display.update()
def score():
point = 1
while point > 0:
time.sleep(1)
point = point + 1
displayscore('Score: ' + str(point))
python pygame
New contributor
$endgroup$
The question is how do I get the text that prints not to overlap
def msgwintexts(text, font):
msgwinsurfs = font.render(text, True, black)
return msgwinsurfs, msgwinsurfs.get_rect()
def displayscore(text):
Bigmsgs = pygame.font.Font('freesansbold.ttf', 18)
msgwinsurfs, msgwinrects = msgwintexts(text,Bigmsgs)
msgwinrects.center = ((100),(100))
window.blit(msgwinsurfs, msgwinrects)
pygame.display.update()
def score():
point = 1
while point > 0:
time.sleep(1)
point = point + 1
displayscore('Score: ' + str(point))
python pygame
python pygame
New contributor
New contributor
New contributor
asked 7 hours ago
VisionsCreatesVisionsCreates
1
1
New contributor
New contributor
put on hold as off-topic by Ludisposed, Sᴀᴍ Onᴇᴌᴀ, Vogel612♦ 6 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Ludisposed, Sᴀᴍ Onᴇᴌᴀ, Vogel612
If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as off-topic by Ludisposed, Sᴀᴍ Onᴇᴌᴀ, Vogel612♦ 6 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Ludisposed, Sᴀᴍ Onᴇᴌᴀ, Vogel612
If this question can be reworded to fit the rules in the help center, please edit the question.
1
$begingroup$
Welcome to Code Review! Unfortunately this post is off-topic for this site. Please read What topics can I ask about here? - note that it states "If you are looking for feedback on a specific working piece of code...then you are in the right place!" Also, when posting your question, there should have been text on the side that read "Your question must contain code that is already working correctly..." When you have fixed the code, please update it here and it can be reviewed."
$endgroup$
– Sᴀᴍ Onᴇᴌᴀ
6 hours ago
add a comment |
1
$begingroup$
Welcome to Code Review! Unfortunately this post is off-topic for this site. Please read What topics can I ask about here? - note that it states "If you are looking for feedback on a specific working piece of code...then you are in the right place!" Also, when posting your question, there should have been text on the side that read "Your question must contain code that is already working correctly..." When you have fixed the code, please update it here and it can be reviewed."
$endgroup$
– Sᴀᴍ Onᴇᴌᴀ
6 hours ago
1
1
$begingroup$
Welcome to Code Review! Unfortunately this post is off-topic for this site. Please read What topics can I ask about here? - note that it states "If you are looking for feedback on a specific working piece of code...then you are in the right place!" Also, when posting your question, there should have been text on the side that read "Your question must contain code that is already working correctly..." When you have fixed the code, please update it here and it can be reviewed."
$endgroup$
– Sᴀᴍ Onᴇᴌᴀ
6 hours ago
$begingroup$
Welcome to Code Review! Unfortunately this post is off-topic for this site. Please read What topics can I ask about here? - note that it states "If you are looking for feedback on a specific working piece of code...then you are in the right place!" Also, when posting your question, there should have been text on the side that read "Your question must contain code that is already working correctly..." When you have fixed the code, please update it here and it can be reviewed."
$endgroup$
– Sᴀᴍ Onᴇᴌᴀ
6 hours ago
add a comment |
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
1
$begingroup$
Welcome to Code Review! Unfortunately this post is off-topic for this site. Please read What topics can I ask about here? - note that it states "If you are looking for feedback on a specific working piece of code...then you are in the right place!" Also, when posting your question, there should have been text on the side that read "Your question must contain code that is already working correctly..." When you have fixed the code, please update it here and it can be reviewed."
$endgroup$
– Sᴀᴍ Onᴇᴌᴀ
6 hours ago