Computer Science Canada Programming C, C++, Java, PHP, Ruby, Turing, VB   Username:   Password: Wiki   Blog   Search   Turing   Chat Room  Members
Rolling Dice Effect
Author Message
hey_joe42

Posted: 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

Tony

Posted: Wed Apr 02, 2003 10:48 am   Post subject: (No subject)

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

or draw random pictures of dice rotating and loop them really fast
Tony's programming blog. DWITE - a programming contest.
hey_joe42

Posted: Wed Apr 02, 2003 10:14 pm   Post subject: (No subject)

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

Posted: Wed Apr 02, 2003 10:19 pm   Post subject: (No subject)

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

Posted: Thu Apr 03, 2003 5:17 pm   Post subject: (No 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?
Tony

Posted: Thu Apr 03, 2003 5:26 pm   Post subject: (No subject)

well dont you have to animate a cube rolling?
Tony's programming blog. DWITE - a programming contest.
AsianSensation

Posted: 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.
Tony

Posted: Thu Apr 03, 2003 6:16 pm   Post subject: (No subject)

hey, thats a preaty good idea...

if you through in some "in-between" images (showing edge of the dice) it should look good.
Tony's programming blog. DWITE - a programming contest.