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

  • SEARCH
  • Home
  • 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 6238167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:09:44+00:00 2026-05-24T11:09:44+00:00

I am developing a maze and ball game with 20 levels. All the issues

  • 0

I am developing a maze and ball game with 20 levels. All the issues are fixed in my game except one problem. I am stuck at making balls moment smoother. the ball moment is good in all levels, except animated levels. I am not able to find where the mistake was.

In all levels balls are sprites and level images are sprites and animated sprites. I have animated sprites for level images along with balls in 6 levels. In remaining levels level images and balls both are sprites only.

all animated sprites are having 1024×1024 size textures.
I used the following code to create animated sprites.

this.multipleImagesTexture = new Texture(1024,1024,TextureOptions.BILINEAR_PREMULTIPLYALPHA);
this.multipleImagesTextureRegion =   TextureRegionFactory.createTiledFromResource(this.multipleImagesTexture, this, getResources().getIdentifier(m_level.m_levelImages.get(j), "drawable", "com.andmaze.mobile"),0, 0, col,row); 
this.mEngine.getTextureManager().loadTexture(this.multipleImagesTexture); 
multipleimagesdragon = new AnimatedSprite(5, 83, this.multipleImagesTextureRegion);    
multipleimagesdragon.animate(1000); 
scene.getFirstChild().attachChild(multipleimagesdragon);

and following is the code to create sprites for balls

for(GoliMeta g : metalist) {
    balls_Array[index] = new Sprite(g.X , g.Y, ballTextureRegion);
    Body body = PhysicsFactory.createCircleBody(mPhysicsWorld, balls_Array[index],    BodyType.DynamicBody, FIXTURE_DEF);
    scene.getFirstChild().attachChild(balls_Array[index]);
    mPhysicsWorld.registerPhysicsConnector(new PhysicsConnector(balls_Array[index], body, true, false));
    index++;
}

In all levels in which there is normal sprite for maze the ball moment is good. and in other levels i.e where i have animated sprites, there the ball moment is unusual. I have changed the physicsworld object code to

    mPhysicsWorld = new FixedStepPhysicsWorld(30, new Vector2(0,SensorManager.GRAVITY_EARTH), false);

instead of

     mPhysicsWorld = new PhysicsWorld(new Vector2(0, SensorManager.GRAVITY_EARTH), false);

there is a slight change in ball moment but not as much smoother in other levels( non animated levels). it is still getting bounced lightly. and because of that problem not able to play the game.

Can any one help me if aware about this. any response would be appreciated.

Thanks.

  • 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-24T11:09:45+00:00Added an answer on May 24, 2026 at 11:09 am

    There was nothing wrong in coding and all. I have resolved the issue by changing the frame resolution for animated images to 3×3 (i.e 3 rows and 3 columns) from 3×2 (i.e 3 rows and 2 columns). Now in all animated levels each image have 9 frames where previously had 6 frames each.

    By making this change ball moment became as smoother as in non animated levels now.

    Thanks

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

Sidebar

Related Questions

I' developing a small android maze game and I'm experiencing a strange effect which
Developing a heavily XML-based Java-application, I recently encountered an interesting problem on Ubuntu Linux.
Developing a desktop application based on Java + Swing I faced the problem of
Developing a Struts 2 app I run in a following problem. I need to
Developing a simple game for the iPhone, what gives a better performance? Using a
Developing is more of a hobby at the moment; so apologies if this is
Developing a chrome extension using javascript is one of my university projects. I don't
Iam developing one application.In that i use the google api for getting the location
Iam developing one application.In that i use the google api for getting the location
iam developing one application.In that i use the search bar for search the data.But

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.