r/PythonLearning • u/TheCarFamily • 22d ago
Help Request Else statement not working
Hello, my else statement is not working- the if statement its inside is, did i mess up the indents again or is it something else?
also would a display flip work to change the image back to the other image in the else statement?
any help is nice!
26
Upvotes
View all comments
1
u/p1geondove 22d ago
it is indented one to far, but python can handle this luckily. about if display.flip() stores the last buffer: hmm maybe, why dont you try out? :)
https://github.com/pygame-community/pygame-ce/blob/main/src_c/display.c
was curios to find out why, but i think flip is just a historical name. the way i read it, theres no actual double buffer involved, it only draws to the surface whats in
screen->buffer