Solved

Visual Basic Ping Pong Countdown timer random boxes.

Posted on 2003-11-28
3
2,692 Views
Last Modified: 2012-08-13
im am making a ping pong game in visual basic 6.0 for the game, i wish to make each game last about one minute and that the person who has the highest score at the end of the game wins. how could i go about doing this?


the second part of my question is, i wish to make random boxes appear on the form, which when hit by the ball will either make the ball go faster/slower, the bats bigger/smaller and the ball bigger/smaller. how could i do this.
the bats are called shape1 and shape2. and the ball is called shape3.

i also had an idea of controlling one of the bats with the mouse but ive absolutely no idea as how to go about this. i would be greatful for some ideas.
0
Comment
Question by:aidanmcg34
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Accepted Solution

by:
ennetworks earned 200 total points
ID: 9887144
Hi there,

-For the first part of your question:
   This can be done using Timers (an easy way) or Tickcount (Using the API)..

-For the secound part:
   You must create your own (TYPE) and define all types of boxes that you want and then create an array for these items ..   (lets say..  "Dim items as ItemType(25)"    ) then, you can randomize the items positions and type.


If you care for some Source code .. I can give you examples.

Contact me on :   <e-mail removed by AnnieMod>

-EN


0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough.  To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…
Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question