?
Solved

Visual Basic Ping Pong Countdown timer random boxes.

Posted on 2003-11-28
3
Medium Priority
?
2,693 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 600 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

Technology Partners: 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

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

800 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