VB 2010 Make A Matching Game - Random Locations?

Apr 25, 2012

I am using Vb 2010 I am trying to make a matching game. My problem is I have picture boxes 16 to be exact. I want each one to randomly go to a certain place I have already picked on the form. That means that I have 16 places already picked and I have made point variables for all 16. I can not seam to randomize the picture boxes to be placed in only those 16 locations.

View 13 Replies


ADVERTISEMENT

Game Programming :: Make A Matching Card Game In VB 2010 - Show Cards For 10 Secs Then Change Cards To (AppPath & "Cards Ed.png")

Apr 19, 2012

I need to make a matching card game in VB 2010. i have generated my cards but now need to show the cards for 10 secs then change the cards to (AppPath & "Cards ed.png"). then when a user clicks on the card the card will flip over.*How would i set a timer to turn all my cards into*(AppPath & "Cards ed.png") after 10 secsbut still have the values from the array and when i click the cards they flip over (from red card to numbered card)

Code:
Private Sub Place()
Dim Counter As Integer = 1
For Row As Integer = 1 To Int_Grid_Size

[CODE]..........................

View 2 Replies

Make A Matching Card Game

Apr 18, 2012

i need to make a matching card game in VB 2010. i have generated my cards but now need to show the cards for 10 secs then change the cards to (AppPath & "Cards ed.png"). then when a user clicks on the card the card will flip over.How would i set a timer to turn all my cards into (AppPath & "Cards ed.png") after 10 secs but still have the values from the array and when i click the cards they flip over (from red card to numbered card)[code]

View 2 Replies

Game Programming :: Resetting The Locations Of An Array Of Picture Boxes?

May 26, 2011

I have created this code to reset my picture boxes to default locations upon form load.

my sub:

Code:
Sub reset_Alien_locations()
Dim Xlocation As Integer = 26
For segmentIndex As Integer = 0 To AlienArray.Length - 114

[Code]...

I have this sub load up upon form_load event. Yet it doesn't do a thing! I want each picture box to appear on the same row, hence the y axis is set to 49. but I want my X-axis to be added by 30, so that there is a gap of 30 pixels between each picture box, hence the x point is: Xlocation = Xlocation + 30

View 2 Replies

Game Programming :: Prevent Users Typing In Random Letters In A Text Box-Scrabble Game?

May 4, 2011

I have created a scrabble game that generates random letters. For the user to type in a word using the random letters they have to type it in a text box.

I want my program to prevent users from typing in letters that are not provided in the text box and to allow them to type in the random letters that are provided.

View 4 Replies

Make A "guess The Musical Interval" Game - Playing It With Random Numbers?

Apr 30, 2009

I'm trying to make a "guess the musical interval" game, which will play two separate random audio files in succession.So far, I've got it doing that quite well. Here's my issue:I have a list of check-boxes listing off the different intervals that I want potentially hear when I click btnPlay. i.e., if every musical interval's checkbox is checked, I want it to potentially play any interval (unison - octave). Easy.However, if I uncheck "unison" I want my random number x to be not equal to my random number y (x <> y)If I uncheck minor 2nd, I want random number x and random number y to never be 1 number apart (x - y <> 1)?

Here's my code, I'm sort of getting lost here. I can't get inequalities to work, it says "expression is not a method."

Public Class Form1
Dim x As Integer
Dim y As Integer

[code]....

View 2 Replies

Change The Tutorial 4 Matching Game To Use Pictures?

Aug 1, 2011

I would like to change the matching game to use pictures.I tried making a list of images but they are always visiable

View 9 Replies

Make An Invaders-like Game With VB 2010?

Jan 10, 2010

i am currently trying to make an invaders-like game with visual basic 2010.I've managed to make one alien (picturebox16) dissapear when the coordinates of the arrow (picturebox1) kinda matches the coordinates of the 16th alien, however, the second alien(above it) doesnt dissapear(picturebox4)?

View 2 Replies

Make Design Box For The Concentration Game In VB 2010?

May 13, 2011

I am trying to make my design box for the Concentration game in VB 2010. And do not know what kind of box to use, to show the cards that flip over.

View 4 Replies

VB 2010 (click Bot) Make A Little Bot For A Game - Play

Apr 7, 2012

I try to make a little bot for a game that i play. But i don't know how to make a functie that click on a resources (looks like this: [URL]

View 1 Replies

VS 2010 Make A Game Statistics Calculator?

Jan 3, 2011

I want to make a game statistics calculator. For this I choose to make a XML database with the base stats of the characters.

I've made a small XML file in the VS2010 project with 1 class stats and made a list to 10 levels (to lazy atm to write all 85).

the XML looks like this:

<BASIC_CHARACTER_STATS>
<Levels>
<level id="1">1</level>

[Code]....

On the Form1.vb I've to combo boxes, 1 to display class names and 1 for levels.
Also have some Labels to display i.e. the base_STR number. But after trying random stuff to get it linked and closed VB to restart again because it was messed up too much

View 1 Replies

VS 2010 - Make A Simple Text Based Rpg Game?

Nov 9, 2011

[code]...

Yup,not PHP but it's the same for readability)As you may imagine I want to make a simple text based rpg game, but that's not an important fact.The buttons btn1 to btn3 are already created at the designer, and there are going to be other procedures which will assign values to their text property according to the game context (main menu, combat, shopping, training, etc.) you're at.Ok, so what I want to do with that procedure I pasted is to parse the text of ANY of those buttons when I click them, and according to its value select a case which will trigger another appropriate procedure (now there are only msgboxes as placeholders for testing only).My problem is that I dont know how to refer to the originating class of the handled event! I mean, let's say I click btn2. I'll want to immediately get the text property of that button only and use it as the value for the select case tree. I suppose I need to put something at that ?I wrote there, but I don't have any idea. The first time I was so naive to put me.text in there, and of course it returned the form name. Is there's something to do this thing...? I thought at first it would be a very simple task, but I'm going nuts searching for a solution so it's like if it was not possible, but I find hard to believe that, because this would be very useful, right? By the way, what I want to achieve is not needing to make a separate procedure for each button and to avoid as well the need to move any game option to another procedure if later on I want to rearrange the menus, because I expect the game to have more than three buttons actually.

View 2 Replies

VS 2010 - Make A Random Automatic Mouse Clicker ?

Mar 4, 2012

How can I make a Random Automatic Mouse Clicker ?I want it to click in random places in my screen...

View 1 Replies

Make An Array In A Loop Change Picture Box Locations?

May 24, 2011

I have made a For next loop with an array. I want all my picture boxes to follow each other within the loop. I have currently been using old code, but not in a loop or array format. The old code works. The array code only makes the 2nd picture box follow the FIRST one. It doesn't loop the rest. I have checked the code and cannot determine any mistakes, else I'm missing out on something I haven't been taught.[code]...

View 17 Replies

Game Programming :: Make A Game In VB In Which Character Can Move Around, Jump, And Kill Things?

Apr 2, 2008

im trying to make a game in visual basic in which your character can move around, jump, and kill things. I can get the picture box with the character to move and everything is fine. but i did run into one problem. when the character moves over a tree (or something) you can see the gray backround of the character as i made in paint. how do i make the backround of the picturebox transparent?

View 4 Replies

Game Programming :: Transparant Images - Make A Game Which Basiclly Lets You Shoot Ducks

Feb 1, 2010

I am trying to make a game which basiclly lets you shoot ducks. i have a picture as a background (set as form image) i then have picturebox's with ducks flying flying around you shoot them the disapear etc.

My problem is the image. i have a picture of a duck and a blue square round it. and i would liketo make it transparant because birds dont fly with blue squares.

Below is an image to illistrate my problem

I have tried adding transparent background, transparant key etc

View 2 Replies

Projectile Motion - Make A Game Similar To The Impossible Game?

May 19, 2011

I'm doing a project for school. I'm trying to make a game similar to the Impossible game. I need a square (picturebox) to jump but I want gravity to effect it.

View 1 Replies

Code Generate A Random Number / How To Make It 'TRULY' Random

May 29, 2011

I am trying to make a texas hold em game and it is of the utmost importance that my code generate a random number. But using a random number function that I always end up with a lot of the same numbers over and over again. Any ideas on how to make it "TRULY" random? [code]

View 3 Replies

Bingo Game (Random Image From 1 - 49)

Feb 4, 2012

I have done allot so far but now im stuck on this:

1. i have 35 picture boxes on my form

2. i have a folder with 49 images (.png) 7 colors * 7 numbers = 49

3. i have 2 timers 1st set to 3min. second to 2 min.

evrything is good so far what i need to do is when timer 2 starts to start drawing the balls (images) from the folder

It needs to be random and only 1 image each round

I dont get it done sitting 2 days watching youtube videos and googeling about it and still nothing i got it that far that it shows random images but then i get same image 4 or 5 times on the form.

View 4 Replies

Display Random Number - Game

Nov 24, 2010

I've been asked to write an age guessing game using vb. We have to have 4 buttons and a text box where the random number is displayed. The range is between 5 and 110. we have a 'too high' 'too low' , 'start' and 'correct' button

[Code]...

View 7 Replies

Random Number Generator Game?

Mar 15, 2009

Stuck programming a random number generator game. one is to guess what the random number. I have coded most of it and am pleased, but there are some hitches. a) When running the program if you guess 10 it says," Guess Higher" which is impossible as the num gen stops at 10 (if you guess 9 and the number is lower than 9 it says guess lower . . . which it is supposed to do)

b) When asked to play again if one clicks no it calls you a loser and exits the problem is it does the same if you click yes. How can I get it to simply start over if yes is clicked

c) Does anyone know how to make an image move up or down based on the input? IE if guess needs to be higher the image moves higher? Lower and it moves lower?

[Code]...

View 3 Replies

Random Picture Generator For A Game?

Feb 18, 2012

i am a complete beginner in VB, I need help for a very simple cards game that I am doing. I need to associate a random picture to a Picturebox every time that I click on a button. I can set the visible property to the picture, but it is always the same picture that shows up, and I would like it to be randomly generated instead, (from a series of card pictures that I have in a folder.)

View 1 Replies

Game Getting Random Strings - No Correct Results

Jun 22, 2010

When I use my own word e.g. here "jose" the results are correct but when I use random string it doesnt work the same.

Here's my code
Imports System.Text
Public Class Form2
Dim guess As String = " "
Dim bulls As Integer = 0
Dim cows As Integer = 0
[Code] .....

View 1 Replies

Making A Random Number Guessing Game?

May 29, 2009

im making a random number guessing game type thing, i have the main thing done, but I was just wondering, how could I get it to show the integer rndnumber in the message box that comes up? I think its something like &= or something, but I havn't even been using VB for a week, so im can't figure it out. Here is my script:

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If RadioButton1.Checked = True Then[code]......

View 7 Replies

Start A New Game In A Random Number Generator?

Apr 7, 2011

I'm trying to teach myself how to create a Random Number Generator in Visual Basic 2008 using a menu system and I'm having difficulty with the following:If I type in a number above 100, I don't get a message appearing saying that the number that I typed is too high.I don't know what I need to code to start a new game.How do I get messages to show up when both pressing the "Check Me" button and using the "Give Me the Number" option to say whether the answer is correct or too high or too low.ful to hear them.

View 1 Replies

Tic Tac Toe Game - Place At Random An X Or An O In An Empty Label?

Nov 12, 2009

A fiend of mine and myself are working on a simple game of tic tac toe and we can't for the life of us figure out the computer part. Can you guys help?

What we want to know is, if the label has X or O in it and therefore is occupied then the computer should place at random an X or an O in an empty label.

View 9 Replies

VS 2010 Game Multi-Client - Program That Enables A Game To Have More Than One Instance Running

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

VS 2010 Parse A Html File For Image Locations?

Mar 15, 2011

I am using this code to parse an html file for image locations:

Dim htmlDoc As String = IO.File.ReadAllText(path, System.Text.Encoding.Default)
Dim Regex As New System.Text.RegularExpressions.Regex("img.*srcs*=s*(?:""(?<1>[^""]*)""|(?<1>S+))")

[Code].....

How would I change the regex string so that it leaves off everthing from the img to the src=, so that I'm just left with what's in between the quotes? Note that sometimes there is stuff between "img" and "src=" and sometimes there is not.

View 14 Replies

Eliminate Duplicate Random Numbers For A BINGO Game?

Nov 24, 2011

how to eliminate duplicate random numbers displayed in labels ( a column of 5 labels). This is for a BINGO game i am doing. I have tried a Do .. Loop until structure with a for next but i am not sure how to proceed:

Do
For NumB = 0 To 4
B(NumB) = Int(15 * Rnd() + 1)
itemarrayB(NumB).Text = B(NumB)
Next
Loop Until

View 2 Replies

Game Programming :: Appear On A Random Location On Another Specified Larger Picture Box?

Jan 13, 2011

I have a picture box and I tell it to appear on a random location on another specified larger picture box.

here's my code:

Code:
Sub P2_AppleMove()
Dim P2ax As Integer = CInt(Int((P2Foodarea.Width * Rnd()))) ' sets the random area of the food

[Code]....

P2foodarea is a large picture box I created. I only want the apple to spawn on P2Foodarea, atm, it spawns on P1Foodarea which is very weird. P1foodarea is a whole other picture box. I even made new variables as you can see P2ax and P2ay, but it still doesn't spawn on P2Foodarea. I have even tried recreating a new picture box for P2foodarea

View 12 Replies







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