I am trying to recreate the Pokemon red fight scene and I need a 5 second delay between the first character appearance (the good guy) and the second (the bad guy). I have tried the time.sleep() method however it just waits 5 seconds (sleep time) before launching the program.
#Add Person
label = Label(image=diglett, bg= "white")
label.place(x=20, y=80)
#Add Enemy (I want a 5 second delay here...)
label2 = Label(image=bad_guy, bg= "white")
label2.place(x=200, y=20)
label2.after(100)
bad_guy_name = Label(root, text="Cabbage", bg='white')
bad_guy_name.place(x=35, y=30)
I have seen another Stack Overflow post about this however I am not sure how to implement this into my code: Time delay Tkinter
Thanks