Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Craps Game, Graphics Help

Status
Not open for further replies.

jusfocuz

Programmer
Mar 26, 2007
9
US
hey everyone. I am new to the site and to VBA but not too new to the programming world. Ive been learning VBA for about a month now and Ive been able to catch on to it quickly. Now i am working on a project, a casino craps game. I finished the basic project [getting the random numbers for the dice rolls, chekin the roll, placing bets etc.] and now I am trying to make the game more attractive.

i want to show an animation of a dice rolling when the user clicks "ROLL DICE" on the userform. I have no idea where to go from here, i have been researching this for a couple weeks now trying to find something to do. Ive heard about GDI+ ? Any advice on how i could get this to work. I think the ideal would be to be able to show a .gif file of a dice rolling, on the screen.

Thanks in advanced.
 
Not sure if your in the right forum...

But here's an idea using images...

get or make or dice images 1 - 6

Place 12 image controls on the form

img1Dice1, img1Dice2, img1Dice3...

img2Dice1, img2Dice2, img2Dice3...

Place all img1 files ontop of each other hiding all but 1

Place all img2 files ontop of each other hiding all but 1

On the Roll Click ---
Set a TimerInterval
On the TimerEvent ---
Reference your random number function, and display the correct image.

In VB you can create an array of the images and loop or reference the array value.

Good Luck....

I'm thinking of creating a No-Limit poker game in my spare time... Sounds like a fun challenge!



AccessGuruCarl
Programmers helping programmers
you can't find a better site.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top