I need help with the events in my game

I have an error in my code where the 0.5 doesn’t land on desk when chicken is in bathtub, and the 0.5 doesn’t have falling logic when it is on the desk and then I put chicken in bathtub.

level1 = False
x = 0
y = 0
#🐤
numw = 0
numh = 0
import pygame
import pygame.freetype
pygame.init()
c = pygame.time.Clock()
import random
import tsk

font = pygame.freetype.Font("GermaniaOne-Regular.ttf", 50)
font2 = pygame.freetype.Font("GermaniaOne-Regular.ttf", 200)
font3 = pygame.freetype.Font("GermaniaOne-Regular.ttf", 50)
font4 = pygame.freetype.Font("GermaniaOne-Regular.ttf", 300)
font5 = pygame.freetype.Font("GermaniaOne-Regular.ttf", 40)
font6 = pygame.freetype.Font("GermaniaOne-Regular.ttf", 200)
font7 = pygame.freetype.Font("GermaniaOne-Regular.ttf", 50)
font8 = pygame.freetype.Font("GermaniaOne-Regular.ttf", 20)
sound = pygame.mixer.Sound("Explosion.mp3")
font9 = pygame.freetype.Font("GermaniaOne-Regular.ttf", 50)
sip = pygame.mixer.Sound("EmptyDrink.mp3")
sparkle = pygame.mixer.Sound("Sparkle.mp3")
fail = pygame.mixer.Sound("EmergencyAlarm.mp3")
crash = pygame.mixer.Sound("Crash.mp3")
sipping = True
animating = True
floating = False
completed = False
crashing = True
time = 0
font.fgcolor = (89, 48, 1)
font3.fgcolor = (255, 255, 255)
font5.fgcolor = (255, 255, 0)
font9.fgcolor = (255, 0, 0)
window = pygame.display.set_mode((1000, 500))
window.fill((0, 0, 0))

# 232 to center y
font.render_to(window, (211.5, 75), "BRAIN - CLOG: A PUZZLE GAME")
font2.render_to(window, (363, 152.5), "🚽")
font3.render_to(window, (376.5, 400), "🧻PLAY!🧻")

# 226.5 to center
start = pygame.Rect(377, 392, 247, 55)
pygame.draw.rect(window, (0, 0, 255), start, 5)
pygame.display.flip()

running = True
while running:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False
        if event.type == pygame.MOUSEMOTION:

My post was clearly poorly made. How do I delete it?

You haven’t provided enough of your code for me to fully understand the issue. Are you familiar with how to edit a post on here to include additional details?