Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
How do I show how many coins I collected on the screen

gustavinho
Registered User
Quote
2021-07-01 22:01:40

hello i'm making a sonic fangame and i wanted to find out how to show on the screen the amount of coins i collected, can someone help me?


sven
Registered User
Quote
2021-07-02 07:18:35

You can use 2D overlay to display any text or image.

----DECLARE VAR----
NEW3DSCENE1
SetOrChangeVariable
COINS=0

----UPDATE----
NEW3DSCENE1
EveryFewSecondsDoSomething 100ms
Change 2D OverlayText
COINS= $COINS$

-----COLLECT A COIN----
SetOrChangeVariable
COINS=COINS+1


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Intern?tional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact