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
Solved

Visual Basic Ping Pong Countdown timer random boxes.

Posted on 2003-11-28
3
2,687 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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 …
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 video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 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