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
3 registered members (TedMar, AndrewAMD, fairtrader), 578 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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