in facttime time(will keep returning values that will end up putting false into flashison until which is the next tenth second this is why the flashison variable will constantly have false for one tenth of secondand then true for the next one tenth of second (no matter how many iterations happen in that tenth of second if not gameovermode and not (invulnerablemode and flashison) playerobj['rect'pygame rect(playerobj[' 'camerax playerobj[' 'cameray getbounceamount(playerobj['bounce']bounceratebounceheight) playerobj['size'] playerobj['size'] displaysurf blit(playerobj['surface']playerobj['rect']there are three things that must be true before we draw the player' squirrel the game must currently be going on (which happens while gameovermode is falseand the player is not invulnerable and not flashing (which happens while invulnerablemode and flashison are falsethe code for drawing the player' squirrel is almost identical to the code for drawing the enemy squirrels draw the health meter drawhealthmeter(playerobj['health']the drawhealthmeter(function draws the indicator at the top left corner of the screen that tells the player how many times the player squirrel can be hit before dying this function will be explained later in this the event handling loop for event in pygame event get()event handling loop if event type =quitterminate(the first thing that is checked in the event handling loop is if the quit event has been generated if sothen the program should be terminated elif event type =keydownif event key in (k_upk_w)movedown false moveup true elif event key in (k_downk_s)email questions to the authoral@inventwithpython com