Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (steyr, alibaba), 534 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
timer... #357936
02/09/11 05:17
02/09/11 05:17
Joined: Jan 2011
Posts: 25
A
Akama_Amber_Fu Offline OP
Newbie
Akama_Amber_Fu  Offline OP
Newbie
A

Joined: Jan 2011
Posts: 25

our game is a fighting game... and it needs a 3 mins timer...

can someone teach me how to use timer from 3:00 mins to 00:00...

thanks GOD BLESS you... ALLAH Bless you...

Re: timer... [Re: Akama_Amber_Fu] #357937
02/09/11 06:52
02/09/11 06:52
Joined: Sep 2010
Posts: 97
C
carla_mariz Offline
Junior Member
carla_mariz  Offline
Junior Member
C

Joined: Sep 2010
Posts: 97
here, you could use this:

Code:
var time_left = 180;

function countdown_startup()
{
	while(!player){wait(-4);}
	while (time_left >= 0)
	{
		minutes_left = integer(time_left / 60);
		seconds_left = time_left - minutes_left * 60;
		str_cpy(time_str, "Time Left to Play: ");
		str_for_num(temp_str, minutes_left);
		str_cat(time_str, temp_str);
		str_cat(time_str, ":");
		str_for_num(temp_str, seconds_left);
		if (seconds_left < 10)
		str_cat(time_str, "0");
		str_cat(time_str, temp_str);
		time_left -= 1;
		wait (-1);
		
	}
}



laugh good luck grin

Re: timer... [Re: carla_mariz] #357952
02/09/11 10:20
02/09/11 10:20
Joined: Jan 2011
Posts: 25
A
Akama_Amber_Fu Offline OP
Newbie
Akama_Amber_Fu  Offline OP
Newbie
A

Joined: Jan 2011
Posts: 25
salamat ate sheila..goodluck din sa'yo ay sa inyo pala..:D

Re: timer... [Re: Akama_Amber_Fu] #357981
02/09/11 13:52
02/09/11 13:52
Joined: Sep 2010
Posts: 97
C
carla_mariz Offline
Junior Member
carla_mariz  Offline
Junior Member
C

Joined: Sep 2010
Posts: 97
haahahaha..cno 2???ahahah..cge good luck..^_^


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1