Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6939577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:38:26+00:00 2026-05-27T12:38:26+00:00

So basically till know I have a DynamicBody where I’m adding 36 sprites when

  • 0

So basically till know I have a DynamicBody where I’m adding 36 sprites when user touch the screen. The thing that I want to know if it’s possible with AndEngine to add a text label on the screen. Let’s say for example I have different flags and the text label is saying England. If user press English flag I want to remove the selected flag when it’s correct and to change the text to USA for example. So I need somehow to make a connection between the selected sprite and the text which is on the screen and to remove the sprite if it’s correct.

SO far I can add/remove sprites, I need a help only adding the text and a way to know which is the right sprite depending on that sprite.

Another second question is : which is the best way I can load 36 sprites on the screen everyone in different position without having any lags and things like that.

For a sample code you can take a look at this post : AndEngine Sprites

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:38:27+00:00Added an answer on May 27, 2026 at 12:38 pm

    AndEngine has support for text labels; Text is a label with unchangeable text (You only set in once in the constructor) and ChangeableText is a label whose text can be changed.

    About your second question, Entity class has 2 methods called getUserData() and setUserData(Object pData). You can use these to find out which sprite was clicked.
    For example:

    Sprite sprite = new Sprite(...);
    sprite.setUserData("sprite");
    

    And then, when it is clicked, you can find out which sprite is it:

    if(clickedSprite.getUserData().equals("sprite"))
       .....
    

    Loading 36 sprites shouldn’t make a game laggy… Loading 36 large textures might, but if at least some of the sprites are created from the same texture, it’s fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I'm trying to accomplish the same thing that mailto:bgates@microsoft.com does in Internet Explorer
Basically I want to know how to set center alignment for a cell using
Basically I have a div at the very top of my site that I
Basically my dilemma is this. I have a list of x servers that host
Basically what I want to do it this: a pdb file contains a location
Basically I have some code to check a specific directory to see if an
Basically I’ve heard that certain conditions will cause .NET to blow past the finally
Basically, I want my script to pause between 4 and 5 AM. The only
Basically, I have a page where you search for a term, and the database
Till now, I was using VB for developing applications. Now I have to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.