It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

snakes and ladders

Moderator: dafunkymunky

snakes and ladders

Postby charndex on Fri Apr 29, 2005 12:35 pm

hie. i just started using VB, learning programming and am workin on a snakes and ladders game. i need help on the statements to use if i want the game to restart itself without closing after the player has finished their first game if they want to play more than one. the other thing is counting the number of throws the dice makes for a full game. i`d be greatful to anyone who can help as i am stuck on these two.

:? :?
charndex
 
Posts: 3
Joined: Fri Apr 29, 2005 10:14 am
Location: leeds

Postby dafunkymunky on Sat Apr 30, 2005 10:50 am

hi there wel i dont understand you when you tell that you want to start the game againg well all you have to do is write a function to reset all the variables and everthing that change during the game and for the no os dice stuff
whenever you click on the dice you have to increnent a variable by one
and defining the variable is done as follows :::

Dim <variablename> as integer

you have to write this code in the topm part of the cding section i mean before everything and writing it there makes it a global variable and you can change the value of this variable anywhere in that form
and if you want to know how to write a function fro your game you will have to explain me more about the game you are creating....

i would be glad to help you

--DAFUNKYMUNKY
User avatar
dafunkymunky
100+ Club
 
Posts: 183
Joined: Fri Apr 08, 2005 7:32 am
Location: India


Who is online

Users browsing this forum: No registered users and 6 guests