Snakes and Ladders Board Game

Rummy
04-18-2005, 06:12 PM
Hi guys...

I have had a quick search around the forums and couldn't really find anything that answered my specific question, but if it has been answered in a previous post then i'm sorry :)

basically, I have made a snakes and ladders board game and am in need of a little bit of coding help. All I need to get working now is the code that makes the piece move across the board (I think it's called a timer) according to the number that has been rolled by the dice.

Would anyone know of anyways to do this, I'm pretty much stuck, and my assignment needs to be handed in on Wednesday at the latest :whoops:

All help is greatly appreciated :)

Ta Very Much.

Y2KbuG
04-18-2005, 06:36 PM
do you need to have it animated or just moving to the space? if there is no animation i do not see a need for a timer.

Rummy
04-18-2005, 06:50 PM
yes, it has to be an animation...

I have the code that actually gets the character to the correct sqaure, but I need the code that shows the animation of the movement, if that makes sense

Sorry for the confusion :)

Y2KbuG
04-18-2005, 07:06 PM
Well you could just load all of the pictures into picture boxes and just put, in timer

If Frame = 5 then Frame = 1

Picturebox6.picture = pictureBox & Frame & .picture

Frame = Frame + 1



Pic box 6 will be visible the not. I think to make it move you would have to make an Variable array like

X(19)
Y(19)
If you have 20 spaces and then manuly

X(1) = 0
Y(1) = 1

For each space. if the spaces a in a equaly sqare order, dont use the variable and just use an equation to find the coordinates.

I am not really sure about moving them around the path. By the way, is the path in a logical order like a grid or _______
l_______
_______l
l_______
_______l

Or is it just laid out curvy in no mathmatical order?

could the animation be a straight line of sight or does it have to follow the path.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum