Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
valure webgl

giorg
Guest
Quote
2021-03-31 10:13:48

in my webgl app i uploaded the content of a txt file to my site but i can't transform the txt numbers into value in my game, can you give me some tips thanks


just_in_case
Moderator
Quote
2021-03-31 14:57:41

this might be due to because the value might be in string format try converting them into numbers first using the javascript.

for example if you have a variable which stores number as string lets suppose we have

var xyz = "1234";

then you can convert that string into numbers by using something like.

var abc = Number(xyz);

and now when you use the var abc it will give you values in number, not in string format.




Create reply:


Posted by: (you are not logged in)


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