+ 1

I need Help.

Hey guys. I need some help. I need like a pause command where the "Wait float(0.1)" is, but i cant find anything on the Internet. I tryd time.sleep(0.1) but it didnt work either. Sry for my bad English and thanks for help. :) gametime_Player1 = 0 max_gametime = (10) Player1 = 1 while Player1 == 1: gametime_Player1 = gametime_Player1 + float(0.1) print(gametime_Player1) if gametime_Player1 >= max_gametime: Player1 = 2 Wait float(0.1) if Player1 == 2: print("Player 1 lost the Game!")

8th Feb 2018, 10:40 PM
Alexis Tziantopoulos
3 Answers
+ 5
Looks like this is python. Try using: import time ... time.sleep( t ) ... where t is number of seconds https://www.tutorialspoint.com/python/time_sleep.htm
8th Feb 2018, 10:46 PM
David Carroll
David Carroll - avatar
+ 2
In what language?
8th Feb 2018, 10:43 PM
josh mizzi
josh mizzi - avatar
0
Yes in Python Thanks for the Help. while Player1 == 1: import time gametime_Player1 = gametime_Player1 + float(0.1) print(gametime_Player1) if gametime_Player1 >= max_gametime: Player1 = 2 time.sleep(0,1)
9th Feb 2018, 3:02 PM
Alexis Tziantopoulos