Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 15,499 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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