I'm working with pygame to try and produce a visual Blackjack game. I'va had a look around for past hour or so, and I can't seem to find anything that does what I'm looking for. I need to update the display (named screen in my code) so that the user can navigate through the menu with ease. the function below is the product of all that I've read up on and, when applied and ran with the necessary button, it only changes the colour of the "Blackjack Blast" text whilst the mouse button is being held down.
def update_window():
textsurface = Font1.render('BlackJack Blast!', True, e_m_lighter)
screen.blit(textsurface,(106,100))
pygame.display.update()
Could anyone offer any assistance as to how I can get the display to permanently update with a single button press?
update_window()change text but it doesn't remeber it so next timemainloopwill draw old version. - furasself.indexso after click it still displays correct color. - furas