Similar to that of Kongregate Racing?
Whereby you can dynamically insert the avatar of the currently signed on user to Kongregate, in to the flash game.
Is this possible?
(sorry about this topic being very vague)
|
|
Similar to that of Kongregate Racing? Whereby you can dynamically insert the avatar of the currently signed on user to Kongregate, in to the flash game. Is this possible? (sorry about this topic being very vague) |
|
|
If you are using AS3, you can ask the API for the users avatar, chat avatar, level, points, etc. It will provide you the path to the image, which you can then display in your game. The server for the AS3 API documentation is down, but it should be back up soon. EDIT: Site is up. Here is the documentation for the user data you can request: Example:
import com.kongregate.as3.client.KongregateAPI;
function onUserInfo ( playerData:Object ):void
{
trace ( "avatar path: "+ playerData.avatarPath );
}
KongregateAPI.getInstance().user.getPlayerInfo ( onUserInfo );
|
|
|
Thank you very much in supplying WAY more info I anticipated. This has helped me continue in my project, i’m extremely happy! |
|
|
does kong also do this with as2? if so i might port my userinfo project to flash |