Solved

Visual Basic Ping Pong Countdown timer random boxes.

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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 …
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now