The Daily Click ::. Forums ::. Klik Coding Help ::. Sad question about counters!
 

Post Reply  Post Oekaki 
 

Posted By Message

Dave S.



Registered
  26/09/2003
Points
  924
24th October, 2004 at 13:56:24 -

Yes... I know I have asked this question before but...

How can I prevent a counter from resetting to zero every time I start or restart a new level?

Basically I'm using two counters, one default (resets to zero) and another which is accumulative (retains it's current value).

I'm using MMF 1.5

Thanks, Dave S.

 
n/a

Bo Fu



Registered
  02/04/2004
Points
  413

VIP Member
24th October, 2004 at 13:59:02 -

You can either:

1) Make it a global object
2) Set it to always equal the score or lives or a global value, and change the global value instead of the counter

 
If wishes were fishes then we'd all smell like ladies' underwear.

Dave S.



Registered
  26/09/2003
Points
  924
24th October, 2004 at 14:22:05 -

Bo, tried the first suggestion as it seemed easier to do... worked fine when starting a new frame but the counter still resets to zero when restarting the current frame.

Dave S.

PS I must admit to not fully understanding your second suggestion.

 
n/a

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
24th October, 2004 at 14:30:29 -

I am not sure what you want, but you could save the values using ini.

 
http://www.robocaptain.com

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
24th October, 2004 at 16:53:47 -

there are global values you can set in the event editor
they will be remembered as long as the game it played not if its turned off.

You can use the global value instead of the counter but it wont show on screen
so always set the your counter = to the global values number.

easy peasy lemon squeezy.

 
.

Teapot

Does he even go here

Registered
  02/10/2003
Points
  2631

VIP Member
24th October, 2004 at 18:55:43 -

Global objects always cause bugs on my tgf, my mmf seems to be fne...but use global value anyway (easier).

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
25th October, 2004 at 03:00:49 -

I find the Global objects in MMF easier because you can give them a name (set counter to coins).

 
Old member (~2004-2007).

Dave S.



Registered
  26/09/2003
Points
  924
25th October, 2004 at 07:47:40 -

Thanks for all your suggestions... think I've sorted it!

Dave S.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click