Thanks for watching! GitHub: github.com/baraltech/Quiz-App-Python Boilerplate Pastebin: pastebin.com/XejQE50m
@okithabiyanwila Жыл бұрын
Baraltech thank you for coming out of retirement and making this very informative video and I will never take it for granted. SUIII 🐐🐐🐐🐐🐐🐐💯💯💯 best youtuber fr
@baraltech Жыл бұрын
On the grind starting now my boy
@okithabiyanwila Жыл бұрын
@@baraltech big dubs!!
@oosmanbeekawoo Жыл бұрын
Good tut! Easy on beginners
@sploosh2857 Жыл бұрын
The intro is legendary
@dell0156 Жыл бұрын
Is it possible to change the question to pictures? It will turn out like flashcard
@ageisjustanumber123 Жыл бұрын
Great video man!
@baraltech11 ай бұрын
thanks bro!
@trexking3197 Жыл бұрын
My Goat has returned
@andrija23 Жыл бұрын
hi, i tried to implement this in my game, but the problem is i did do something very similar to your code but the spacebar is not registered when i press it and the question does not reveal (or the card does not flip) and i set the keys for next and previous questions return(enter) and backspace, they do work but when i click enter once it like skips 7 questions or goes through them really fast, so do you know how can i fix this?? i need to present this game to my class in a few hours so i dont think youll reply but okay if you see this i hope you can help me!
@shauryagupta36449 ай бұрын
Hi, I know it's been 9 months since you asked the question, but I hope this helps: Without looking at the code, it is difficult to be certain, but from the description you have given, it seems to me that you have done the pygame.key.get_pressed()[...] statements outside of the "if event.type == pygame.KEYDOWN" check.. The while loop is many times every second (can be 10s or 100s or even 1000s of times), which also determines how many frames per second (FPS) your game runs at. So in this case, even though you think you pressed the button only once, when the button was pressed down, the while loop ran multiple times, and thus flipped through the questions multiple times. ( So even though you think that the space bar doesn't flip the card, it is actually flipping it many times, which makes it sometimes come back to its original state :D ) The reason it worked in the video, was because these key presses were checked inside the "if event.type == pygame.KEYDOWN" block.. so even though the while loop ran multiple times when the key was held down, the condition was only satisfied once, when the key was originally pressed..