Adding Stopwatch On Multiple Forms In Math Game

Oct 16, 2011

I am making a maths game, that has 10 questions, all of different forms. There's a button on the first forum saying, 'subtraction' addition and that. I need. Stop watch to start when you click one of those buttons , and stop once all questions have been answered, and the time shown.

View 10 Replies


ADVERTISEMENT

.net - Gems Game Step Calculation In Other Word Some Math?

Feb 28, 2011

I have a program that scans an image and converts gems to specific numbers. Look at the picture below:So i have a table with numbers. Number 1 is for yellow gem, 2 for blue, etc...

Like:

A B C D E
1 | 1 2 3 4 5
2 | 3 5 2 4 1

[code]....

I want to calculate a step, to get 3 equal numbers (gems) horizontally or vertically. For example, in this table if i swap E2 with D2, D2 will be 1, and D2,D3,D4 creates a valid step, because it's all 1. I'm using VB.NET 2010.My table is 8x8 size, it's just an example above.At now i'm just have the values in multiple variables (A1=1, A2=3, so on..)

View 2 Replies

Game Programming :: Adding Score To Rock Paper Scissor Game?

Oct 3, 2011

Im new to VB. how do I get to add the score.my code is

[Code]...

View 6 Replies

Forms :: Pause Then Change Stopwatch Time?

Mar 5, 2010

I have a StopWatch running, I convert the milliseconds to the following format. 00:00:00 i.e HH:MM:SS which is a label.

I can pause the the stopwatch and resume but I dont seem to be able to edit the stopwatchs time. So lets say my time says 00:00:02 , i now want to pause the program which I can, but also change the stopwatch time to 00:00:10 and resume counting.

View 3 Replies

VS 2010 Hmwk - Display The Largest And Smallest Using Math.max - Math.min

Mar 5, 2012

well i am having a couple of issues with this particular homework problem and this is my first programming class so there is probably quite a few mistakes well the homework problem is to take three double values entered by a user and display the largest and smallest using math.max and math.min and display the smallest and largest so i thought i could use a listbox and take the values that went to the listbox and assign variables to each so i can try to use each variable in the math.max and min but im not making it to far and i actually might be way off

[Code]...

View 4 Replies

Stopwatch Ticks - Trigger An Event For Each Tick Of The Stopwatch Without Missing Any Ticks?

Oct 5, 2011

So a timer's maximum interval is 1 which is a thousand ticks a second. A Stopwatch's frequency is 2238906 ticks a second on my pc...

I am wondering if there is a reliable way to trigger an event for each tick of the stopwatch without missing any ticks...

If I can somehow get a Tick event for the stopwatch, I believe I can increase the resolution of my input recorder....

View 1 Replies

SQL Performance Timeouts - Adding Multiple Rows In Multiple Tables In The Database

Sep 12, 2011

I have a vb.net web application and when a particular function runs , i get data timeouts in the rest of the application..(ie..row not found errors or column does not belong to table but it does) The function is adding multiple rows in multiple tables in the database and is running in a for loop. It seems to be all SQL related but I am not seeing anything in the error logs in SQL or in the application Right now I am assuming it is memory related where to start note..the for loop will be replaced with a bulk insert but right now I jest need to resolve the issue of the timeouts

View 1 Replies

Adding Features To A Pong Game?

Apr 16, 2010

I actually found a fairly good pong tutorial on this site which I've linked to at the bottom of this post. I used the code as my base and I'm starting to implement my own new features. I'm currently working on making the ball move faster after each hit of the paddle, but I can't get it working! I thought it would be as simple as adding 1 to the 'speed' variable during the test to see if the ball has hit the paddle. Doesn't work! I also tried various other methods, including adding an extra timer to the form and having the speed increase a certain number every tick on the timer. Didn't work! Is there some special way that I need to reference that variable in order to manipulate it? Code below.

[Code]...

View 1 Replies

Game Programming :: Adding Pictureboxes To Form

Jul 23, 2008

I know how to make a single picturebox, but I need to make more different pictureboxes. Example: I want to make a picturebox every time snake and food crash (I'm making snake with pictureboxes, yes). But for that, I need a code that will make a new picturebox with different name every time they crash. For example When they first crash, the code should make a picturebox called snakepart(1) next time they crash it should make snakepart(2). Something like that.

View 1 Replies

VS 2005 Adding A Physics Engine To Game ?

Mar 29, 2009

I am creating a game for my 2nd year of uni. I have no idea why my lecturer wants me to create a game in VB.net using Direct X and not C# XNA but he does, so i have to abide by his rules.I am in no way mathematically advanced enough to create my own newtons physics so i wanted to get an engine to go into my VB.net code.Is this even possible?, im totally new to all of this physics stuff.does anyone know of any VB.net engines out there? and how do i link this engine into my code?

My game is

A 2D blob of water has to navigate itself up and down a set of obstacles, if it falls from a specific hight then it will explode and loose a life. It needs to be able to jump a determined hight also.

View 1 Replies

VS 2008 Adding A Method To All Forms Existing Forms Without Changing Their Code?

Jul 28, 2009

just wondering if it is possible to add a method to all forms in my project without having to do it on one form and Inherit all my other forms from that one

View 3 Replies

Click Of A Button The Stopwatch Starts Then On The Click Of A Second Button The Stopwatch Stops

Mar 23, 2010

One the click of a button the stopwatch starts, then on the click of a second button the stopwatch stops then states either in a msgbox the time taken between the two button clicks.

View 2 Replies

Adding LAN / Internet Network Support To My Game In Microsoft 2010 Express

Feb 4, 2011

I've been working on my game for a while, in a non-online multi-player state it is complete. My goal is to add LAN or Internet Play support.My game is coded in Microsoft Visual Basic 2010 Express, It relies heavily on timers.Currently you play against the AI, and there is a Local multiplayer mode, using mice, controllers or the keyboard.At the moment, it is a two player, (Or 1 player against the AI) game, from my understanding the standard Client-to-Server option wouldn't very efficent, the best choice would be a peer-to-peer system.That being said, a lot of the stuff could be done client side, like for instance, the particle engine and Dynamic Rendering.[code]

View 1 Replies

Concentration Game - How To Use The Multiple Timers

Mar 12, 2012

In my class, we are designing a concentration game. The game will give you and output of numbers and you will have a specified time to memorize the numbers. Then, you will enter your guess to see if you were right or not. User will have the option to specify if they want a 3, 6, 12, or 24 digit number. Then they will be able to specify their own timer of 30 seconds, 15 seconds, 3 seconds, or 1 second. The options are done using radiobuttons.Groupbox 1 categorizes the number of digits long. Groupbox 2 is for the timer. So far, I have the whole game layed out except for the timer. Everything works.

View 11 Replies

Game Programming :: Firing Multiple Projectiles?

Oct 31, 2009

firing is triggered by clicking the background of the form (its a 2d space shooter, like asteroids)now the problem is, that when i click, it fires all 3 projectiles at the same time. and thats not good since its not very useful. so how do i have some sort of delay or something so it only fires one projectile every time i click

Code:
Private Sub background1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles background1.Click

[code]...

im doing this for a school project, and ive never done any programming before so please if you know how to make this work, can you explain it as well as possible.

View 5 Replies

Game Programming :: Multiple Platform Collision Detection

Jan 12, 2010

Lately I have been making a platformer game, just to experiment and see how it would work, and after making two very basic levels I realized that it would take a lot of code to include several or more platforms.

[Code]...

View 4 Replies

Game Programming :: Rendering Of Multiple Sprites (2D Processing)?

Jul 29, 2010

I am embarking in the wonderous world of 2D animation and using directx9. I am a complete noob in the world of game engine design etc. I find DX quite usefull and in fact easy to use but in my opinion it's the engine design that makes or breaks the application. There are a massive amount of tutorials on the web explaning how to render a single image to a target but not so much for rendering a lot of sprites.

View 3 Replies

Forms :: Game Of Life Simulation?

Feb 28, 2011

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim x, y As Integer

[code].....

View 4 Replies

Game Programming :: Closing Forms By Name?

Feb 18, 2009

I have an application that create forms and name it randomically. I would like at certain point, to be able to close one or more forms from the main window application.

View 4 Replies

Game Programming :: Using Data Between Two Forms

Oct 3, 2011

I have a label on form 1 which show the answer, I want that label answer to appear on Form 2 label or text box. Hw do I go around doing that?

View 1 Replies

Make A Turn-based Board Game That Will Be Run On Multiple Computers?

Jun 29, 2011

I am trying to make a turn-based board game that will be run on multiple computers. I am writing the game logic and design in VB. I searched for a little and could not find the information I was looking for. One question I have is, will I need a server if there will only be 2 players. Also, what language should I use to write the server side code.

View 1 Replies

Making A Simple Game - Multiple Hotkeys - Simultaneously Go Up And Left

Jun 9, 2011

I'm making a simple game. I want simultaneously go up and left.

Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
' If e.KeyCode = Keys.Z Or e.KeyCode = Keys.Up Then

[CODE]...

Left, right, down and up work. now diagonal.

View 1 Replies

Application That Has Multiple Front Ends Developed Using Windows Forms / WPF / ASP / Compact Framework Mobile Forms

Apr 9, 2010

I have the requirement to create an application that has multiple front ends developed using Windows Forms, WPF, ASP and Compact Framework Mobile Forms.I would like to be able to create a series of obejct representing the business logic and have this logic accessible from the various front ends available. My first thought was to use remoting as I'd like to be able to pass the business objects back and forth between client and server but the compact framework doesn't support remoting and also transferring a full framework business object to a compact framework business object doesn't seem possible.My next thought was to use web services but again the passing of business objects seems to be very hard to accomplish. Without doing this I would have to create individual web methods for each business operation.

Finally my next option is to use sockets and write the whole client/server logic within some classes and expose them to the UI/Business layer. My only problem with this is it is not scaleable should the number of clients increase dramatically whereas using remoting or web services I can host the solution via ASP.Net.Does anybody have an ideas on the best way forward for this or even have any input on how they would write an application that required a windows form, wpf, asp website and mobile device GUI all of which want to use the same business logic?

View 3 Replies

Game Programming :: PictureBox Access Between Forms?

Jul 29, 2008

I have been working with Visual Basic 6 for over a year and have just recently to move up to .net. I have never had problems viewing picture boxes that were on one form thought another.My old code read something like:frm1.img1=frm3images.treeThis would take the image of the tree from a form that is not viable and place that image in the imagebox.

View 10 Replies

Forms :: Multiple Forms, Closing Events And Sub Routines?

May 25, 2010

I have googled high and low to find an answer to this but I must be searching wrong.I have an application which has a listview displaying some items that are stored in a SQL Compact database. I am using a second form to add new items to this list directly into the database.When the second form closes I want to call the sub in my first form to refresh the list from the database.

How can I get it to fire the form1 sub routine on the close event of form2

View 3 Replies

Multiple Forms Program Needs To Open Successive Forms Somehow?

Nov 3, 2009

i was doing a fair amount of programming many years ago, like 10 it feels like, so I'm sorely not up to date on how my newly downloaded Visual Basic Express expects me to communicate with it.I am writing a program that pulls a cell from a database after the user has gone through several forms to determine which cells they want. When I write it like that, it doesn't sound very efficient, but I've designed it this way for usability.Here's where I have a problem: Should I store the path the user takes in a string, an array, what?

Here's an example:Someone wants baseball stats and trivia. They run my program, main form pops up, they select National League button, the NL Form pops up. Now the way my program is set up right now, is there are two ListBoxes on the form, one is populated, and as the user selects a Team from ListBox1, it jumps to ListBox2. Once they've selected all the teams they want info for, they click a button Next.

What I now need the program to do is show the next form "Team: name" once for each team, and insert the name of the team on the form in the appropriate label which I'll have blank. This form will also do the Listbox thing except the first listbox will populated with Topics like HR Stats, Pitching Stats, Coach History, etc.

View 1 Replies

Importing Flash Documents - Load Game Onto Different Forms

Apr 5, 2011

I am trying to load a flash animated game into visual basic to work with a program I am using. I want to be able to load the game onto different forms as it will have different chapters. How do I make the game part of a windows form?

View 7 Replies

Forms :: Adding Controls To Mdi Forms?

Jul 7, 2011

I am developping a VB.net application. I would like to add buttons on the MDI but every time I open a child form of the MDI, it appears down the buttons. Is there any way I can solve this problem?

View 3 Replies

Forms :: Maintaining Multiple Forms Positioning?

Jul 26, 2010

Launch a dialogue window from the main form, and then another dialogue window from that dialogue window. If you close the second dialogue window and call dispose the main form vanishes under any other open windows. This doesn't happen by closing a dialogue window normally, but I am attempting (rightly or wrongly) to stop memory useage creeping up by disposing of it.

So, the question is - what method can be employed to maintain the position of the windows?

View 4 Replies

Forms :: Multiple Forms Open And Close

Apr 16, 2009

I have two forms frmMain and frmNew, and one module modMain. In modMain I hold public variables which are needed for application. My question is how to open and close those two forms when needed? I ask this because if i set frmMain as startup form, then when closed, application will end, and one of those two forms will always be displayed. Also if I set frmNew as startup form, then when I close this form, application will also end. Is there a way to do this from module or something so my application won't end after closing and opening any of those two forms?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved