We are about to switch to a new forum software. Until then we have removed the registration on this forum.
First off: i'm new to processing, coding and everything around it, so excuse my ignorance :) I created a WASD moveable rectangle on the screen, which doubles it size when you hit the spacebar.
After that, it transforms to its original state. In between the transformation (when it's doubled), i want a delay (no specific time). I tried using time.sleep and delay, but everything seems to freeze the entire program (including the movement controls. How will I be able to only delay only the one statement?
Thanks in advance!
if space_pressed == True: rectSize += 2 if rectSize == 200: space_pressed = False delay (5000) if rectSize >= 100 and space_pressed == False: rectSize += -2