Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (RealSerious3D, AndrewAMD, BrainSailor, 1 invisible), 1,233 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: same counter in al levels back and forth? [Re: Trooper119] #125028
04/20/07 08:14
04/20/07 08:14
Joined: May 2006
Posts: 132
Norway
Fiskekona Offline OP
Member
Fiskekona  Offline OP
Member

Joined: May 2006
Posts: 132
Norway
no dont recognise that either.
But my problem is this probably.....

The counter I am using to count down is starting as soon as I hit the new game in the main menu.
Then the main game starts and when I enter the secret level the counter still counts as it would have been in the main game.

So maybee I need to have to seperate counter one in each level...main level and secret level...

Because I need that counter and I need to add the scoore that the player gets from the secret level added to the main level scoore. And I dont want the game to end after secret level, I want to reward the player with extsra seconds in the main level.

Is this possible...


Programmer in training... Own GameStudio Commerical 6.50
Re: same counter in al levels back and forth? [Re: Fiskekona] #125029
04/20/07 08:52
04/20/07 08:52
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
var counter; as global veriable is running always with f.e. if(player !=0) wait(-1); function. So it doesn't matter where your player will be, counter will be counting. You may change counting like if player is in secret level then +1 (reward extra time) by time_step and if in main level -1 by frame_step.
Or maybe I still don't get it


Never say never.
Page 2 of 2 1 2

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