|
Post by Leonardo on Feb 2, 2017 2:01:17 GMT
I use a lot Hippo Animator, but not with javascript. Now I am making an experience. I am trying change an object text "Welcome" in the canvas to "Bem-vindo" (portuguese). There are only 2 samples that uses Javascript, and none of them changes texts in the canvas. When I try to change the object .text property, the system tells that it is a variable not defined. Comments will be welcome. A sample making a minimal multi-language animation sure will be usefull for several developers. Suggestion. NEWS: I changed the text object for the textbox object and was able to change the values. But when I try to use the textbox in another scene, the values return to original.
|
|
|
Post by Hippani on Feb 22, 2017 19:44:12 GMT
You need to create different script id for the other scenes.
|
|
|
Post by Leonardo on Mar 7, 2017 12:48:00 GMT
I received a sample .hani file were the different script id are declared at ON START. This is a way that make posible to declare all text variables, with all the translations in only one place. Attached you have the .hani file. Regards Leonardo TextSet.hani (730 B)
|
|
|
Post by igosiza on Apr 11, 2019 23:54:32 GMT
|
|
|
Post by udezuzoa on Apr 12, 2019 1:55:37 GMT
|
|