GetCredits (Harvest)

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with '{{HarvestMethod | harvest.getCredits() | Returns the amount of credits that the player currently owns. | | Returns the number of credits.}} === Example === <pre> harvest.addCr...')
 
(5 intermediate revisions not shown)
Line 1: Line 1:
-
{{HarvestMethod |
+
{{HarvestNoParams |
-
harvest.getCredits()
+
getCredits()
|
|
Returns the amount of credits that the player currently owns.
Returns the amount of credits that the player currently owns.
|
|
-
|
+
Returns the number of credits. Data type is Number.
-
Returns the number of credits.}}
+
}}
=== Example ===
=== Example ===
<pre>
<pre>
-
  harvest.addCredits(1)
+
local credits = harvest.getCredits()
</pre>
</pre>
 +
 +
=== Resources ===
 +
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]

Latest revision as of 20:06, 2 December 2009

getCredits()

Returns the amount of credits that the player currently owns.

Returns

Returns the number of credits. Data type is Number.

Harvest Library

Example

local credits = harvest.getCredits()

Resources

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox