Game Programming :: Create A Slot Machine Application : User Movable Picture?

May 1, 2010

I am trying to create a slot machine application. I wanted to make a handle like gui so here is what I have:

[URL]

What I want is to be able to let the user drag the red button till a certain point and when they let go of the mouse click the button moves back slowly to the top.Here is what I have so far (I tried my best) :

Private Sub picBall_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picBall.Click
tmrOne.Enabled = True
tmrTwo.Enabled = True

[code].....

View 3 Replies


ADVERTISEMENT

How To Create Slot Machine Game Which Operates On Credits

Feb 23, 2010

I've got to create a slot machine game which operates on credits, I have three buttons and a textbox. One textbox is to add single credits, the second to add 5 credits, and the third adds 10 credits. They all need to be added up to give a 'total' & " credits"

Public Class frmFruitMachine
Dim OneCredit As Integer
Dim FiveCredit As Integer
Dim TenCredit As Integer
Private Sub btnOneCreditit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOneCreditit.Click
[Code] .....

View 4 Replies

Slot Machine Game Error

Jun 2, 2009

I'm new to visual basic 5 and here. I'm attempting to make a slot machine type of game. So far this is the code that i am using (below), the problem i am having is that nothing is showing up in the labels. And the try again message in a message box just keeps appearing when i start to debug [code]...

View 8 Replies

Game Programming :: Create A Picture Shuffle Game?

Jun 4, 2012

I am all new to Visual Basic 2008, I am trying to create a picture shuffle game, the problem is I cant seem to be able to move one picture from PictureBox1 to PictureBox2 onClick, here is a Code I written earlier:Sub ChangePicture(ByRef P1 As PictureBox, ByRef P2 As PictureBox)

[Code]...

View 1 Replies

Game Programming :: Spinning Reel - Fruit Machine Game For Windows Mobile Device

Feb 16, 2011

I'm trying to make a simple fruit machine game for windows mobile device.

I can create the game easily enough and flip through pictures in a picture box to display the correct symbol.. but what I'd like to do is do a proper spinning reel, but have no idea where to even start.

What I have is a list of images in an imagelist (or individual files) - what I'd like is them attached to each other and moving downwards, preferably as though it were going around a drum but just them moving would be a start.

View 7 Replies

Game Programming :: A Task Of Completing A Pokies Machine

Sep 25, 2008

i have a task of completing a Pokies Machine, with only the following coding as a guideline. [code]

View 4 Replies

Game Programming :: Picture Box Movement Bug?

Dec 30, 2009

Ok, so I'm making a simple breakout game, using picture boxes as I didn't want to bother installing picture boxes.Every movement works perfectly fine; the pad moves correctly, the ball bounces right. Except when I move the pad while the ball is moving.If I move the pad while the ball is moving, the ball moves at the same speed as the pad, which is 10 times the speed of the ball.Well here's the movement code.

Code:
Public Sub Movement(ByVal Movement As String) ' Handles movement
If Not IsPlaying Then Exit Sub

[code]......

View 2 Replies

Game Programming :: Picture Box Not Following Mouse

Dec 15, 2010

I am making a game where a car picture box has to follow a mouse. to start the game you click the car but when i click the car the car moves down away from the cursor. then it starts following the cursor but is still about 2 cm below the cursor and a little to the side.

[code]...

View 3 Replies

Game Programming :: 360 Picture Move VB 2005

May 13, 2008

im currently making(or trying) Turbo Tanks from vb Express edition 2005 and I cant get my tank to move a full 360. I can only make it move 90degrees make a object move 360 and btw is it possible to actually make this game from VB 2005 [URL]

View 3 Replies

Game Programming :: How To Make A Picture Box Bounce

Dec 19, 2009

Im New To VB and i was wondeing how do you make a picture box bounce from the sides of the form.

View 8 Replies

Game Programming :: Keep Picture Box From Leaving The Form?

Feb 9, 2011

How do I keep my picture box from leaving the form screen and how do I make it 'bounce off the walls" when it hits one edge of the form?

View 4 Replies

Game Programming :: Create A Zombie Style RPG Game

Sep 11, 2009

Is there any visual basic 2005/2008 RPG games with the source code available for download.Could you possibly reply to this post with a link to the website with the game.Or is there a template i could use to try create a zombie style RPG game text or graphical.

View 2 Replies

Game Programming :: Animating A Picture Boxe's Size?

Feb 19, 2009

I need to make a picturebox, panel animate from a small 25x 25 to 100x 100 in size but cant seem to set the properties right im using a for loop

-----------buttonclickevent------------
dim myx as new point
for i as integer 1 to 50
myx += 2

[code]....

and i get so many errors?

View 3 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

Game Programming :: Making A Picture Box Move Right Then Left?

Jan 20, 2011

I want a picbox to move across a screen then back to where it started (for a space invader game:

the following code is what I have for this task.

Code:
Private Sub AlienMovement_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AlienMovement.Tick
If Alien1.Location.X > 20 Then

[Code]....

I can't make it < because thats not logical, can't make it = becasue that doesn't work, can't make it > becasue then it will only bounce back once. Is there another variable I could use?

View 5 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

Make A Slot Machine In .net?

Apr 20, 2012

I have to build a slot machine that rotates 3 pictures, and when the player wins a Button pops up going "You've Won, or You've Lost" And If The player won the First form closes with out the program terminating.

View 3 Replies

Make A Jackpot Appear For Slot Machine

May 28, 2012

im doing an assignment and need help to make a jackpot appear for my slot machine. My code so far is for everything excluding jackpot.[code]

View 5 Replies

Make A Slot Machine Program?

Dec 9, 2011

I'm trying to make a slot machine program. This procedure that I'm trying to do will assign a name to 3 randomly generated numbers. For some reason I'm getting a conversion error saying that it cant convert the integer to a string. I tried cstr() as well but the problem persisted

[Code]...

View 2 Replies

Forms :: Slot Machine Payout Code?

Sep 26, 2009

I have made the slot machine. It all works good except, I have encounted one problem though. When you get two of the same images or all three, you don't win anything.i have tried some code. This code has no erros what so ever, but it doesnt seem to work.i have made a new private sub called get payout.( it doesnt make anything appear on the page).Code for the payout i have used is below(doesnt come up with erros though)[code]

View 5 Replies

Slot Machine In Winning System Not Properly Working

Jun 23, 2012

I am coding myself a Visual Basic.Net 2005 Slot Machine program. I've been hard at work on this for about a week and half now. From what I have with it it works and all. However there are so many annoying errors with the program.

LIST: - I am not winning when I should be. My winning conditions is set when you get 3 of the same picture you are to be awarded with some credits. It works but sometimes when it does land on 3 of the same pictures it still says that I've lost. This is the main problem and I am about to pull my hair out about this - The image with the lowest value is showing up the least and the picture with the most value is showing up more frequent? I don't want to change them around to fix that.

[Code]...

View 6 Replies

Game Programming :: Loop Causing Application To Freeze?

Mar 15, 2009

I'm having some wierd problems with my Looping. I'm was using a thread to start a looping routine to sample the keyboard for pressed keys. The loop worked fine when I made a call to it from the thread in my form load routine. However when I just made a call to the samplekeys routine without using the thread my application will freeze and it won't load.I'm making the call in the form load routine. Private KeyThread As NewThreading.Thread(AddressOf SampleKeys)hen start the thread in the form loading procedure , but if I just make a direct call to the samplekey routine without using a thread my application freezes.Here is the the thread don't think there is a problem with it.

Public Sub SampleKeys()
Dim N As Integer
N = System.Environment.TickCount

[code].....

View 1 Replies

Game Programming :: Playing Wave Files In An Application

Nov 20, 2008

I have a program that speaks wave files. This works problemless with the Soundplayer class with the following code:

Sub MyPlayWav(ByVal WavFileName As String, ByVal StartPos As Long, ByVal EndPos As Long)
Dim wp as new SoundPlayer
wp.SoundLocation = WavFileName
wp.Play
End sub

The soundplayer does however not seem to have a method to play the wave from position StartPos to position EndPos and achieving just that would mean quite a reduction in downloads of these files.

The soundplayer does have a stream object, and that does have a seek method, suggesting that there might be a way to accomplish this, but how?

I plan to include other media files as I am developping the project, and I guess I will be confronted with the same problem.

View 2 Replies

Show The Objects Based On The Payout And The Prize Money For Paylines In The Slot Game?

Oct 15, 2010

I am doing a internet cafe sweepstakes slot game in vb.net. I want to show the objects based on the payout and the prize money for paylines in the slot game. I tried using MT algorithem but it basically random number based. the final output should not be radom.

[code]...

View 1 Replies

Make That Title Bar Picture Box Movable?

Nov 9, 2011

I have made form with no border,removed default title bar And placed a picture box,have set the image too, So,now I want to make it moveable, i tried each moveable title bar code,but it gives many error, What would be the code to make that title bar picture box movable??

View 4 Replies

Interface And Graphics :: Create A User Interface In A Game Such As The Application XFire Using VB?

Jan 12, 2010

how to create a user interface in a game such as the application XFire using Visual Basic?

View 3 Replies

Create A Game When Move A Picture Box Around The Form With A Timer Control?

Dec 17, 2009

i am try to create a game when i move a picture box around my form with a timer control i almost done every thing but the problem is avoiding the flikkering effect ?is there any way to avoid it?

View 6 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 :: 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

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







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