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

The Archive Base Latest Questions

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

I made a statement and if it is true it continues, I want to

  • 0

I made a statement and if it is true it continues, I want to stop this “continue” and make another statement for example touchdown and touchup.

here is my code

private void updateRunning(float deltaTime) {
    List<TouchEvent> touchEvents = game.getInput().getTouchEvents();
    int len = touchEvents.size();

    for (int i = 0; i < len; i++) {
        TouchEvent event = touchEvents.get(i);

        if (event.type != TouchEvent.TOUCH_UP)
            continue;
        world.doodle.DOODLE_Y = 3;
        touchPoint.set(event.x, event.y);
        guiCam.touchToWorld(touchPoint);

        if (OverlapTester.pointInRectangle(pauseBounds, touchPoint)) {
            Assets.clicks();
            state = GAME_PAUSED;
            return;
        }

    }

    world.update(deltaTime, game.getInput().getAccelX());
    if (world.score != lastScore) {
        lastScore = world.score;
        scoreString = "" + lastScore;
    }
    if (world.state == World.WORLD_STATE_NEXT_LEVEL) {
        state = GAME_LEVEL_END;
    }
    if (world.state == World.WORLD_STATE_GAME_OVER) {
        state = GAME_OVER;
        if (lastScore >= Settings.highscores[4])
            scoreString = "new highscore: " + lastScore;
        else
            scoreString = "score: " + lastScore;
        Settings.addScore(lastScore);
        Settings.save(game.getFileIO());
    }
}
  • 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-26T20:37:39+00:00Added an answer on May 26, 2026 at 8:37 pm

    Little confused by what you are asking, but perhaps an else if?

    if (event.type == TouchEvent.TOUCH_UP) {
        /* do something for TOUCH_UP event */
    } else if (event.type == TouchEvent.TOUCH_DOWN) {
        /* do something for TOUCH_DOWN event */
    } else {
        /* do something else */
    }
    

    You can’t stop a continue after you execute it.

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

Sidebar

Related Questions

Is this statement true: com.sun.xml.internal package is an internal package as the name suggestes.
In reading @PerformanceDBA's answer to Historical / auditable database he made this statement: In
-edit- nevermind, i made a mistake in my select statement. Update was working correctly.
Made this nice little loop for hiding and showing div's, works as a charm
I made a code that translate strings to match each word from the array
Hell all, I have made use of the following ignore_user_abort . ignore_user_abort(true); set_time_limit(0); session_start();
Ok I want some opinions how I can fix this mess of a method!
I made this strobe light function and the strobe function worked. I've been trying
I made this little program while reading Head First C# . I'm trying to
I've been reviewing a sample code to learn PHP and what I saw made

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.