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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:15:25+00:00 2026-05-29T22:15:25+00:00

im trying to make a simple game on cocos2d box2d, its basically got two

  • 0

im trying to make a simple game on cocos2d box2d, its basically got two buttons and a label with the points. the points increment by +1 every second.

what im trying to do is, the player taps both buttons sequentially so it has to be ‘button1’ then ‘button2’ then ‘button1’ then ‘button2’ …..
if this is done properly then the points increment speed should increase, and the faster the buttons are tapped sequentially, the faster the points should increase.

how can i go about doing this? any ideas?

  • 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-29T22:15:26+00:00Added an answer on May 29, 2026 at 10:15 pm

    The idea is simple: you only increment the score when the other button was the last pressed button. That’s it. So:

    1. Keep track of the last pressed button.
    2. If button1 is pressed, and button2 was not the last pressed button, don’t do anything, otherwise increment the score by some amount.
    3. Do the same kind of check for button2.

    Does this make sense?

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

Sidebar

Related Questions

I'm trying to make a pretty simple game and I'm stuck. Basically I want
I'm currently trying to make a simple game with SDL and Box2D. Unfortunately, the
Im trying to make a quite simple game but its having an error. I
I am trying to make a simple skateboarding game using AndEngine and the Box2D
I'm, trying to make a simple 3D game for Android, and I want to
I'm trying to make some simple XML with Java and org.w3c.dom, but I got
I have just started trying to make a simple game with XNA 3.1 to
I've been trying to make a little simple game just to test my logics,
So I'm working on a simple iPhone game and am trying to make a
Let's imagine really simple game... We have a labirinth and two players trying to

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.