Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Our game will use Game Centre to support multiplayer game, We met language problem now.

Author
Message
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 24th May 2013 06:46
There are people from all kinds of countries, so the player's name will be all different , then how should we show them by AppGameKit ? Now AppGameKit only support English, how should we show all names in all kinds of language.

The Miracrea Games
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 24th May 2013 14:32
Are you asking for iOS?

Long life to Steve!
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 24th May 2013 14:33
Yes, iOS.

The Miracrea Games
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 24th May 2013 14:34
Explain me with an example of what you wanna do.
I will help you.

Long life to Steve!
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 24th May 2013 14:39
I wanna use UIViewController to show player's name, because iOS SDK can show all kinds of language. Can you tell me if the background of UIViewController can be transparent, only the text can show. Then I can put a UIViewController on the game to show names.

The Miracrea Games
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 24th May 2013 14:51 Edited at: 24th May 2013 14:51
You don't need an UIViewController to show text but only an UILabel.
When you use it you can do a command like this:


But i'm not sure to understand what you wanna do.
Cause names are names and for example my name (Gennaro) can't be translated in other languages.
So can you give more details??

Edit : Do you wanna show the ranking of game center???
Or you have problems with chinese??

Long life to Steve!
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 24th May 2013 14:53
There are game centre members from all kinds of countries in the world. So there will be Chinese names, French names , but AppGameKit only support English, so I need use UILabel.

The Miracrea Games
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 24th May 2013 15:01
I understand now.
Yes you can use directly UILabel and it will show the string with the chinese or other language.

If you want also the part on how to show the Avatars near the names, i can post the functions in the iOS forum. I used this method in "Match Point : Ping Pong Online" and i'm using it in the new fighting game i'm doing.
Anyway there is also another way to change it in UTF8 mode but is strict to the way of using game center i use.

Important:
Now take care that when you add a subview from OBJ C this view will go over AppGameKit layer.
So you can use it only on iOS and not on MAC, or you need to use the MAC with a fixed window.

Long life to Steve!
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 24th May 2013 15:07
Thank you very much. I need your code. I'm Halley, glad to meet you here.

The Miracrea Games
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 24th May 2013 15:08
LOL Halley, we talked already on the forum, anyway is a pleasure.
I will post the way i use in the iOS forum!
Enjoy it!

Long life to Steve!
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 24th May 2013 16:24
Hi, Thank you very much, I got success. I'm not very familiar with UILable. I want to use it for every screen, then how should I manage the labels?

The Miracrea Games
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 24th May 2013 17:06
You can manage it in this way:

After you created a label...
UILabel *mylabel = [UILabel .......];

you can do this to manage:
mylabel.tag = 150;

so now you can do 2 functions (that you can find also in my template)



In this way you can call it from everywhere.
You can also create new functions to change coordinate or change what you need.

Long life to Steve!

Login to post a reply

Server time is: 2024-11-24 13:53:47
Your offset time is: 2024-11-24 13:53:47