简体   繁体   中英

AndEngine Image on part of a sprite

I'm working on a game which integrates Facebook. In a certain scene, the user can choose an opponent from the list of Facebook friends who have installed the game.

I want to create this menu of friends, I know how to create the list, I know how to get the friends who have the app installed, and how to get their info. What I don't know, is how to create a sprite, which would have, for example, the user's profile image on the left, his name and score on the right, and to have this whole thing act as a sprite (or a SpriteButton )

Can anyone point me to the right direction? Since I obtain the info from Facebook, I can't, obviously, have the Sprites pre-made.

Any help would be great!

You shouldn't use AndEngine entities for this, as there is nothing ready to suit your needs (You'll have to make this on your own).

Instead, use the regular android dialogs. You can use your own layout which consists the profile picture and any other text you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM