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 7780185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:49:44+00:00 2026-06-01T18:49:44+00:00

Ive been trying to get my app to change from one scene to another.

  • 0

Ive been trying to get my app to change from one scene to another. what i do is onLoadScene() i direct it to a method which has a scene, and what im trying to do is to set another scene which is in another method… but what i get is the sprite from the first scene stuck on the screen !

can someone help me in teaching me how to change from one scene to another in the same class.

here are my codes:

@Override
public Scene onLoadScene() {
    return splashGame();
}

private Scene splashGame(){
    final Scene sceneGameSplash = new Scene();

    sceneGameSplash.setBackgroundEnabled(false);

    System.out.println("pls work 1");
    final Sprite splashSprite = new Sprite(0,0, this.gameSplashScreenRegion);

    sceneGameSplash.registerUpdateHandler(new TimerHandler(3f, true, new ITimerCallback() {
          @Override
          public void onTimePassed(final TimerHandler pTimerHandler) {
            sceneGameSplash.unregisterUpdateHandler(pTimerHandler);

            System.out.println("pls work");


            splashUnjum();
          }
    }));

    splashSprite.setBlendFunction(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
    splashSprite.setHeight(display.getHeight());
    splashSprite.setWidth(display.getWidth());

    sceneGameSplash.attachChild(splashSprite);


    return sceneGameSplash;

}

private Scene splashUnjum(){

    final Scene sceneUnjumSplash = new Scene();
    this.mEngine.setScene(sceneUnjumSplash);

     System.out.println("pls work 2");
    final Sprite splashUnjumSprite = new Sprite(0,0,this.gamevedaSplashScreenRegion);
    splashUnjumbleSprite.setBlendFunction(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
    splashUnjumSprite.setHeight(display.getHeight());
    splashUnjumSprite.setWidth(display.getWidth());

    sceneUnjumSplash.attachChild(splashUnjumSprite);

    sceneUnjumSplash.registerUpdateHandler(new TimerHandler(3f, true, new ITimerCallback() {
        @Override
        public void onTimePassed(final TimerHandler pTimerHandler) {
            sceneUnjumSplash.unregisterUpdateHandler(pTimerHandler);

            System.out.println("pls work yo");

            mainMenu();
        }
    }));


    return sceneUnjumSplash;

}
  • 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-06-01T18:49:45+00:00Added an answer on June 1, 2026 at 6:49 pm

    I’m not sure this is the issue, but I think you should remove this line from splashUnjum()

    this.mEngine.setScene(sceneUnjumSplash);
    

    replace the call to splashUnjum() with

    this.mEngine.setScene(splashUnjum());
    

    One other thing you should do is insure that the change happens on the updateThread

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

Sidebar

Related Questions

I've been trying to get the camera section on my app working for about
I've been trying for a while to get my app to move to its
im working on a Spotify IOS app and i've been trying to get the
Ive been trying for a while now to get a rich textbox to populate
Ive been trying unsuccessfully for a few days now to get a button to
I've been trying to get a simple hello world web app running on Sinatra.
I've been trying to get the new colorpicker from the toolkit working in my
I've been trying to get a PDF from an NSURL that is changed during
I've been trying to get something working in a windows 8 metro style application,
I've been trying to get styling working on site uncookedblog.com for hours now. I

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.