Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
pop up 2d text

timo
Registered User
Quote
2023-01-14 17:47:43

how do i make that when i harvast some wood (variables) a 2d text pop's up? saying: 1 wood added?

and how do i make that i can see the value of a variable in 2d text?


sven
Registered User
Quote
2023-01-14 18:05:08

There is action set text.
Variable you display by adding $myvariable$ ( if i remember correct - i use javascript usually )

With javascript i would make onframe event that manages temporary messages.. i would clone 2doverlay set it text .. move it up until its y=0 then delete it.
[Just for idea]

I recommend to use forum search option because these questions is answered already and all answers laying deep in forum.


timo
Registered User
Quote
2023-01-14 21:28:51

the part that i can see the variable on the 2d text doesn't work sadly. any other suggestions for that?


sven
Registered User
Quote
2023-01-14 21:46:51

Its a action: Change 2D Overlay Text

use $ [dollar symbol] at the beginning and at the end of variable name in set text.

Action can be called : on every fewMS behaviour
So you want to update it in every 100ms then use behaviour for this.
you can update it with keypress also.. if keyPressed then setText.

also dont forgot to enable Draw Text on 2d overlay propertyes.


timo
Registered User
Quote
2023-01-14 21:51:06

thx man! it works, why don't you make your own game to sell on steam?


sven
Registered User
Quote
2023-01-14 22:02:07

wrote:
thx man! it works, why don't you make your own game to sell on steam?


I have many half finished projects active.. so someday there will be probably some games that i made on sale.


timo
Registered User
Quote
2023-01-14 22:55:01

Alr, well if one of your games done please let me know. (Discord: KUPBAZA2761)

I don't know if you even have a Discord????????


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "?nternational" (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