VS 2010 Creating A Game Of Pairs As A Project
Apr 26, 2012
I'm having a little trouble creating a game of pairs as a project.Basically I've got to the point where I can start a game, layout a bunch of cards in a grid, 6x6, and then have a way of matching the pairs together. First of all I used a For loop to assign the cards into a two dimensional array. They are pictureboxes however so when a user clicks on 2 cards, checking them to see if they match has become confusing. I've tried to stuff like this for example but it's not working: [code] This doesn't work because it can't compare the picture boxes stored to the array slot. Is there any clever person with a way around this? Or that can think of a way to compare them. The pictureboxes kinda need to stay like there though :/
View 2 Replies
ADVERTISEMENT
Mar 22, 2012
i would like to get some ideas on how to connect computers to play a LAN game.. the deadline for this project will be on the 27th of march so.The game that i'll be making is a counter-strike-like 2d game.. is it possible that i can finish this project before its deadline?
View 9 Replies
Aug 9, 2011
I'm trying to create a small game in VB2010. The gameplay is as follows:
civilians would walk/stand in a room/street and suddenly an evil character would pop from the ground/wall. This evil character would suddenly vanishes too. So, the player has to shoot it to kill the character. The evil character, civilians, etc. would be random. Also, there would be sound effects too. That is the popping up of the evil character, it's voice, the civilians voice, etc. I'm trying to make it as simple as possible but without degrading the quality of the game play. I think, I could somewhat create the graphics for the characters, scenes, etc. and can get the sound effects recorded.
So, the difficult part is,[ ] how could I make it a smoother for playing the game ?
[ ] what would be the best way to do animations ?
[ ] Creating a GIF and placing it in the picturebox and moving it ?
[x]how to play the music in background and at the same time play sound effects on certain instance ?
View 2 Replies
Jun 3, 2010
I am developing a very simple game in visual basic 2008: a roulette. And yet I found problems in develop it.My question is this: I have an image ,containing all the roulette's numbers and I want to associate the spaces of the different numbers to different buttons, so that which time I click in a certain number on the image it dos some action.How can make this association of the different spaces in the image and different buttons?
View 3 Replies
Dec 20, 2011
no forms can be seen when creating a new project.. i am going to choose a window form but there are no forms to choose.
View 12 Replies
Sep 6, 2011
When I initialize a new dictionary can I specify the key/value pairs on the same line?
View 13 Replies
May 21, 2010
I am trying to create a card game on microsoft visual studio 2008. But i am finding it tricky to get the right codes for the generating button. The button wiill display three random playing card suites and when all three match the user is declared the winner.
View 5 Replies
Nov 18, 2011
I want to make a program that enables a game to have more than one instance running, where it would otherwise be unable to be done. How should I go about this? A sandbox? Hack?
View 3 Replies
Jun 4, 2010
I've already coded the IRC Client, but what would be the code to make the app overlay in the fullscreen DirectX game ? And i've already tried to the TopMost function.
View 37 Replies
Nov 13, 2010
i am creating a tic-tac-toe game, but i need to do it without the IEnumerator variable. how can i do that?
Code:
Private Sub newGameButton_Click(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles newGameButton.Click
[code]....
View 4 Replies
May 20, 2009
I'm very new to visual basic and I am trying to create a tic tac toe game. I have it working all except a message to say the game has ended in a draw.I just can't work out what to put where. I have looked through the various questions and answers on the forum but can't seem to get any of the coding to work for me.[code]Can anyone point me to what code to use to declare a draw and where should I put it?
View 7 Replies
Jun 25, 2008
Recently I have been wanting to learn a bit more about Visual Basic and I've decided that I want to test my abilities by Making a Card game. The card game uses a customized deck of around 140 card. The Cards are all buildings which you need to place down by discarding a specific amount of cards in yoiur hand. The Objective of the game is to get 12 buildings built and get the most points. Many cards will be layed down at some point in the game.The way I think I will be creating the game is by Creating a Class for the Deck which will use a class for the Card. I would like the Card Class to somehow create a picture box of the cards image on the form which will hold all the other cards being displayed.
View 3 Replies
Jun 14, 2009
creating an interactive overlay over a game (such as the way xfire lets you chat with people ingame).
View 1 Replies
Dec 6, 2010
Iam doing a project for school (snake game) Ok here is the code:
[CODE]:................
Snake.image is the head of snake and snake2.image to snake27.image are the rest(body...) So i want create a code that (if snake intersect snake2 to snake27 parts) then timer1.stop I have tryed with:
CODE:
But it doesnt work..
View 6 Replies
Jun 1, 2010
i'm creating a game for a college assignment based on Yahtzee, and so far everythings going smoothly but i've run into a hitch! Basically, after each roll of the dice i want to be able to retrieve the number of the dice wich apeared in each picture box. But how would i go around retrieving that type of data from a picturebox?
View 6 Replies
Nov 2, 2010
To clarify - I'm building a simple game in visual basic and I'm trying to create a simple file to record and display the "Best Score" from each game. Actually there are four levels in this game (each one is on a different form) - I'm trying to save the best score from each level to display in a separate Game Stats form. Therefore I creating a datatable on one form, but then trying to get all my other forms to access it.
But now I get a new DBNull error message in part of code not of my making - NewGameDataSet.Designer.vb
Error Message = "The value for column 'BestScoreEasy' in table 'GameTable' is DBNull."
Does this mean I need another New Statement somewhere?
View 3 Replies
May 7, 2012
I am creating a type of pacman game, I have entered the code for everything else, but I am struggling with the code for the high score,[code]
View 2 Replies
Apr 20, 2009
I am working on this hangman project that has a graphical interface where the user has 2 options either guess the entire phrase or use a combo box to guess letters. I have the guess text box working but I can't for the life of me figure out why it is not working correctly with the combo box. The following is my entire code for the project. I have it setup to show me which phrase it randomly selected but when ever I pick a letter in that phrase it doesn't fill it in or anything. I'm thinking it is an issue with my loops.
I highlighted the section where the problem is occurring.
Public Class frmHang
Dim strWord(10) As String 'array of answer cchoices
Dim strAnswer As String 'the correct answer
[CODE]...
View 6 Replies
Mar 25, 2011
I need help writting a Trivia Game for a school project. The teacher wanted us to get used to looking to forums and google for help so he refuses to help us for this particular summative.
What I want to know is.. how to use a streamreader to read questions randomly from a text document located in the debug folder (I have 10 questions all in 1 text file in the debug folder, and the same for all of my answers) how to use a streamreader and split function to read answers from a text document located in the debug folder to a combobox.
[Code]...
View 19 Replies
Oct 8, 2011
I am currently creating the classic Pong game in VB.Net. I have a few questions regarding angle of approach and rebound.
For example if the ball hits the wall at roughly a 30 degree angle then it should roughly bounce off the wall at ~30 degrees. This is my first query, how would I achieve this as I cannot figure out how. It is currently bouncing the ball off the wall by altering ballXspeed and ballYspeed by 5 or -5.
My second query is that of the ball hitting the paddle, if the ball is to hit to top 0% - 5% of the paddle it will bounce off at a different angle opposed to if the ball hit the paddle in the 15% - 20% zone of the paddle.
Here is my code in its entirety:
Public Class Form1
Dim ballXSpeed As Single
Dim ballYSpeed As Single
[CODE]...
I understand that you cannot do the work for me and I don't expect you to. Would it be possible for help with the pseudo-logic or a particular area. I forgot to mention that the ball currently bounces off the paddles at a random angle.
Hence:
ballXSpeed = -5
ballYSpeed = New Random(DateTime.Now.Millisecond).Next(-10, 10)
View 1 Replies
Jun 17, 2011
How do I go about doing this? I have currently made this code, but sometimes points are created on the boundaries of this picture box, which I do not want. I want all new random points to be within the bounds of this large playarea (picturebox). Foodarea is my big picturebox which i want all fruit to spawn WITHIN not outside on it's edges.
[Code]...
View 12 Replies
May 21, 2010
we were asked to create a game.Me and my friend decided to go ahead and make the game 'Snake' (I think you all know this one)Since we never had any teaching on how to do it we looked already made games and used the same code (we found this one on a Youtube tutorial so I think it was alright to copy it).We picked it because it seemed pretty easy and we can tell what each thing does in the code.I also like fooling around so I changed all he values and stuff so I understood better what was going on.The game goes great but sometimes when the snakehead touches the food it doesn't 'eat' it and I don't know why :This is the part of the code that takes care of eating the food.(PictureBox2 is the snakehead, PictureBox15 is the food)
[code]...
I just don't know why does happens. The PictureBox2 touches PictureBox15 but nothing of what I typed above happens.
View 6 Replies
Jan 21, 2011
i Imported 2 programs that I made into one solution. I made a "BIG" main menu (new windows form), put two buttons. I code one button to open up the first project (that works fine). I code the other button to open the project I imported, however it says that the name is not declared. Am I doing something wrong? here is my code for the "BIG" main menu:
[Code]...
now only the "Original name of first project" appears to be not declared, if I delete "Original name of first project", then "the project I imported"is not declared and so forth. Note: These are not the exact names I called my forms. I'm just trying to explain it clearer.
View 2 Replies
May 5, 2010
I am in the process of writing a battleship game for a final project for school. I get what to do for the most part, but need a little jump start for writing the "ships" class. Does anyone have any suggestions?
So far my game starts with a dynamic array of buttons, but as of now they don't do anything. I need to be able to have the user place ships in places and have the computer randomly generate positions.
View 2 Replies
Nov 30, 2008
Basically i am creating a Hangman program using VB 2008 Express edition and need some help.I would like some help on when a user is entering a letter for the word how can i make it so for example if the target word is "MAX" and they enter "M" i would like the lblstatus to update as "M--" obviously i would want it to be able to do it with all 3 letters.
View 2 Replies
Jan 13, 2010
I am creating a "Who wants to be a millionaire" game. Lets say I have 100 questions in a listbox. How can i randomally select a question by clicking a button.
View 11 Replies
Apr 7, 2011
I am trying to do a game application similar to chess, where i need to move the game peaces(graphics) over another graphics which is the game board. using the mouse. How can I do multiple layers of graphics and control their movement(without using direct x, i know nothing about it)? Note: I have visual basic 2010 express, windows xp home
View 1 Replies
Feb 23, 2009
I am creating a user tool for a game I am playing (NOT a hacking tool, it simply shows information about my own character). I have a template of what I need to do with the data I recieve, here is the code, it is coded in PHP
function decode_style($r) {
//get gender
$gender_array = array('Male', 'Female', 'Male 2','Female 2','Male 3', 'Female 3');
$style['Gender'] = $gender_array[round($r / hexdec(4000000))];
//GET AURA
[CODE]...
Ok, I understand PHP a bit (As you know one programming language you can understand just about any) and this is what I have created from this
Dim Style As Decimal
Dim Rank, RRank As Decimal
Dim Gender, RGender As Decimal
Dim Aura, RAura As Decimal
[CODE]...
As you can see, it is receiving a single piece of data from a remote SQL server, I then need to run this data through the above calculations (Seen in the PHP file) although the answers I'm getting are incorrect.
Here are some simple instructions I got in what goes on between values:
gender :
PHP
[CODE]...
aura:
PHP
[CODE]...
View 1 Replies
Apr 3, 2008
im trying to make snake in visual basic.net for my major year 12 project in Australia and i cant get it to work?
View 5 Replies
Apr 30, 2011
1) Is it possible to filter sale orders by full customer name? I need to do this instead of against first/last name
2) Is it possible to get store name/ID pairs via the API?
3) Is it possible to filter orders by shipping_country?
View 1 Replies