monday Expert Joined Jun 23, 2014 Messages 1,127 Solutions 1 Reaction score 158 Sep 19, 2014 #1 I'd like to make a condition like: start stopwatch if 3 seconds passed then Is there any simple opcode to check if specific time has passed?
I'd like to make a condition like: start stopwatch if 3 seconds passed then Is there any simple opcode to check if specific time has passed?
0x_ Wtf I'm not new.... Staff member Administrator Joined Feb 18, 2013 Messages 1,123 Reaction score 176 Sep 19, 2014 #2 Use the lazy opcode way (wait). or Code: 01BD: $5284 = current_time_in_ms Then save the time started, then on a loop do it again and make endtime - starttime > then you have the difference in ms (3000ms > 1 second) Upvote 0 Downvote
Use the lazy opcode way (wait). or Code: 01BD: $5284 = current_time_in_ms Then save the time started, then on a loop do it again and make endtime - starttime > then you have the difference in ms (3000ms > 1 second)
monday Expert Joined Jun 23, 2014 Messages 1,127 Solutions 1 Reaction score 158 Sep 19, 2014 #3 Thank you Upvote 0 Downvote
springfield God Joined Feb 18, 2005 Messages 2,965 Reaction score 273 Sep 19, 2014 #4 33@ = 0(increases by 1 every ms) repeat wait 0 until 33@ >= 3000 Upvote 0 Downvote