Forums » C# Framework » Animation Issue with Other Locales »
| Pedro Kayatt | Animation Issue with Other Locales | ||||
|---|---|---|---|---|---|
|
Added by Pedro Kayatt about 1 year ago
I will begin to test in other devices, but for now the animations made in zwoptex (as in th Grossini plist) are not working properly (it seems that the anchor point of them just change its positions). In the emulator everything works fine, but when deployed to the device we can notice this error. On the other hand the Animation test (SpriteAnimationSplit) works fine! I tried to reproduce the SpriteAnimationSplit, but instead of taking splits of the same texture I tried to use several textures, and I am not sure why but I could not see any animation playing. I will try to post that code here, but I decided to change to the zwoptex file (seems to have better performance and lesse memory). http://www.youtube.com/watch?v=TOjdavg0VO8 [EDIT] It is not a problem of the Nokia 710, but in fact which any device with a locale different from En. (It was in PT-BR here). |
||||
| Pedro Kayatt | Fix Locales | ||||
|
Added by Pedro Kayatt about 1 year ago
To fix that problem I changed again the Engine it self. Just add these lines in the CCSAXParser.cs Method
public bool parse(string pszFile)
// C#
// Put the following code before InitializeComponent()
// Sets the culture to French (France)
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
// Sets the UI culture to French (France)
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
|
||||
| Evgeniy Rojkov | RE: Animation Issue with Other Locales | ||||
|
Added by Evgeniy Rojkov about 1 year ago
its bad practice to change CurrentCulture |
||||
| Pedro Kayatt | RE: Animation Issue with Other Locales | ||||
|
Added by Pedro Kayatt about 1 year ago
Hi Evgeniy, Thanks for your suggestion, but just setting this I can assure that the file will not read a "," as a "."? I will probably try it later, I just can assure that this way is working! |
||||
| Evgeniy Rojkov | RE: Animation Issue with Other Locales | ||||
|
Added by Evgeniy Rojkov about 1 year ago
im from russia. and our locale setting also use comma instead dot. |
||||
| Pedro Kayatt | RE: Animation Issue with Other Locales | ||||
|
Added by Pedro Kayatt about 1 year ago
Indeed, We (Brazilians and Russians) have a lot of thing in common than we realize! Same here, doing some local git fixes for some stuff (as the labels with wrong color). Good to know that more plp are with the mind into this engine! It would be great if guys like you (who know what are doing) could contribute with fix for this openSource project! Thx for your help! |
(1-5/5)