Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Big Counter

An asset by Skyebee
The page banner background of a mountain and forest
Big Counter hero image

Quick Information

0 ratings
Big Counter icon image
Skyebee
Big Counter

Counter with a number and a total number, which can grow to an arbitrarily-large size, intended for incremental games.Note that the Counter's numbers are all stored using the Big class, which is (for the purposes of this counter) an inner class accessed using Counter.BigYou must give the Counter node a Timer child. Every tick_secs seconds, number will be increased by per_tick. per_tick is computed from a number of variables -- ((tick_base + tick_extra) ^ tick_exponent) * tick_multiplier.Each of these can be manipulated by setting directly, or by using, for tick_X, register_X(n), deregister_X(n), or reset_X(n). The register_ and deregister_ methods act as though you are adding one, and then another, instead of just increasing the number linearly -- there's a difference, for exponents and multipliers.You must not set per_tick directly. However, you can set number directly, or manipulate it using increase_by() or decrease_by(). There's also reset_number(). total_number can be set directly, but can only increase -- decreasing it will throw an error.You can also set tick_secs directly. This will pass through to the timer. tick_enabled also passes through (it starts and stops, rather than pauses)Other methods for interacting with the Timer: get_timer(), start_tick(), and stop_tick()

Supported Engine Version
4.5
Version String
1.0.1
License Version
MIT
Support Level
community
Modified Date
5 hours ago
Git URL
Issue URL

Counter with a number and a total number, which can grow to an arbitrarily-large size, intended for incremental games.

Note that the Counter's numbers are all stored using the Big class, which is (for the purposes of this counter) an inner class accessed using Counter.Big

You must give the Counter node a Timer child. Every tick_secs seconds, number will be increased by per_tick. per_tick is computed from a number of variables -- ((tick_base + tick_extra) ^ tick_exponent) * tick_multiplier.

Each of these can be manipulated by setting directly, or by using, for tick_X, register_X(n), deregister_X(n), or reset_X(n). The register_ and deregister_ methods act as though you are adding one, and then another, instead of just increasing the number linearly -- there's a difference, for exponents and multipliers.

You must not set per_tick directly. However, you can set number directly, or manipulate it using increase_by() or decrease_by(). There's also reset_number(). total_number can be set directly, but can only increase -- decreasing it will throw an error.

You can also set tick_secs directly. This will pass through to the timer. tick_enabled also passes through (it starts and stops, rather than pauses)

Other methods for interacting with the Timer: get_timer(), start_tick(), and stop_tick()

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Big Counter icon image
Skyebee
Big Counter

Counter with a number and a total number, which can grow to an arbitrarily-large size, intended for incremental games.Note that the Counter's numbers are all stored using the Big class, which is (for the purposes of this counter) an inner class accessed using Counter.BigYou must give the Counter node a Timer child. Every tick_secs seconds, number will be increased by per_tick. per_tick is computed from a number of variables -- ((tick_base + tick_extra) ^ tick_exponent) * tick_multiplier.Each of these can be manipulated by setting directly, or by using, for tick_X, register_X(n), deregister_X(n), or reset_X(n). The register_ and deregister_ methods act as though you are adding one, and then another, instead of just increasing the number linearly -- there's a difference, for exponents and multipliers.You must not set per_tick directly. However, you can set number directly, or manipulate it using increase_by() or decrease_by(). There's also reset_number(). total_number can be set directly, but can only increase -- decreasing it will throw an error.You can also set tick_secs directly. This will pass through to the timer. tick_enabled also passes through (it starts and stops, rather than pauses)Other methods for interacting with the Timer: get_timer(), start_tick(), and stop_tick()

Supported Engine Version
4.5
Version String
1.0.1
License Version
MIT
Support Level
community
Modified Date
5 hours ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers