Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Editable Text Overlay

okeoke
Registered User
Quote
2022-06-09 07:25:32

just_in_case
dynamogames
Too tell the truth, I'm lost:) It seems like the same variable is used for 2 different purposes or I just don't understand how it woks.

dynamogames
Please find the working example here: https://drive.google.com/file/d/....


dynamogames
Registered User
Quote
2022-06-09 11:44:33

Thanks @okeoke and @just_in_case for your help. I'm so grateful.
I think the problem was with the variables, I think it was because I checked the "Edit with Variable" in the Editable Text Overlay(JIC) behaviour, after I unchecked it and removed the Press F to edit function, it worked perfectly following the NameSet.ccb file you sent @okeoke.


okeoke
Registered User
Quote
2022-06-10 16:29:27

just_in_case
dynamogames


You actually don't need a js script for that. You can set a variable using $varName$ in change 2d overlay text action as it says here: https://www.ambiera.com/coppercube/doc/cnt_actions.html:~:text=CopperCube%20includes%20several%20actions%20which,creating%20ingame%20AI%20controlled%20characters.

Sets the text of a 2D overlay to a new text. It is also possible to print the content of variables with this, if wanted, by inserting the variable name surrounded by the '$' symbol. For example to display the text of a variable named 'score' after some text in the 2D overlay, set the text to "Your score: $score$". For showing the health of a game AI, use for example "Health: $player1.health$", where 'player1' is the name of the object with the health. (See Special Variables for details).

I didn't know about that.


ajay
Registered User
Quote
2022-09-06 17:57:25

can it be in android??


dynamogames
Registered User
Quote
2022-09-14 11:47:01

Yep I just checked now, it works on Android


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