import pgzrun TITLE = "Paf l'oiseau" WIDTH = 400 HEIGHT = 708 titi = Actor('bird1', (75, 350)) ghost = Actor('birddead',(75,350)) def draw(): screen.blit('background', (0, 0)) titi.draw() #ghost.draw() def on_mouse_down(): print("plus vite)") # titi.speed +=1 # print('stop !') # titi.y -= 20 ghost.x -= 10 titi.speed = 0 ghost.speed = 0 def on_mouse_up(): print('go') titi.speed = 5 ghost.speed = 4 def update(): titi.x += titi.speed #ghost.y += ghost.speed titi.speed = 5 #ghost.speed = 4 pgzrun.go()