Computer Science Canada

Rolling Dice Effect

Author:  hey_joe42 [ Wed Apr 02, 2003 10:05 am ]
Post subject:  Rolling Dice Effect

I'd like to make my board game, Monopoly, to have a rolling effect, i'd really like to make it so the dice looks like it actualy being somewhat tossed but im not sure how to do this
only method i know is to do a couple randints and in between each one put picture, or do it in a for loop for like so many times.
but how could i make it look really good

Author:  Tony [ Wed Apr 02, 2003 10:48 am ]
Post subject: 

use Catalyst's 3D engine to actually draw a real cube Wink

or draw random pictures of dice rotating and loop them really fast Very Happy

Author:  hey_joe42 [ Wed Apr 02, 2003 10:14 pm ]
Post subject: 

whats a "Catalyst's 3D engine ", is it in turing if so how do you do that?

Author:  Prince [ Wed Apr 02, 2003 10:19 pm ]
Post subject: 

lol... i believe hes talking about the user Catalyst's 3D engine... its really damn good

Author:  hey_joe42 [ Thu Apr 03, 2003 5:17 pm ]
Post subject: 

k i took a look at his 3d engine but how on earth is that going to help me its a square?
i don't get it?

Author:  Tony [ Thu Apr 03, 2003 5:26 pm ]
Post subject: 

well dont you have to animate a cube rolling?

Author:  AsianSensation [ Thu Apr 03, 2003 5:51 pm ]
Post subject:  Here is how

There is a way to do this dice thing, me and my partner just used it in our game. I am not going to post the code here, see if you could get it yourself, if you are really having trouble, email me.

The idea:

randint (1,6)
delay for x amount of time,
increase x
draw the dice
View.Update

put this in a loop or a for loop, this will make the dice roll fast, then it will slowdown and finally stop. Take the value of the last dice drawn as your resulted value.

Author:  Tony [ Thu Apr 03, 2003 6:16 pm ]
Post subject: 

hey, thats a preaty good idea...

if you through in some "in-between" images (showing edge of the dice) it should look good.


: