Ambiera ForumDiscussions, Help and Support. |
|
[ 1 2 ] Page 2 of 2 |
|
|||||
|
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/.... |
||||
|
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. |
||||
|
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. |
||||
|
can it be in android?? |
||||
|
Yep I just checked now, it works on Android |
[ 1 2 ] Page 2 of 2 |
|