Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Rolling Dice Effect
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
hey_joe42




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Wed Apr 02, 2003 10:48 am   Post subject: (No 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
hey_joe42




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




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




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




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

well dont you have to animate a cube rolling?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
AsianSensation




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




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 8 Posts ]
Jump to:   


Style:  
Search: