A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Rolling dice

  1. #1
    Member
    Join Date
    Oct 2003
    Location
    Norwich
    Posts
    87

    Question Rolling dice

    I would like to create a dice (preferably 3d) that can be rolled and a random number from 1 to 6 will appear. This result will also produce a random line of text from a list.

    Will be able to add more dice which would mean a greater number of random numbers and text opportunities.

    If anyone has any tips or ideas to get me started that would be fantastic!

    Many thanks

  2. #2
    Hammer
    Join Date
    Mar 2001
    Location
    Warrington UK
    Posts
    274
    I would build a single dice class using papervision then create a full animaiton of the dice rolling and comming to rest

    You could then randomly change the locations of the numbers / orientaion of the dice

    Good luck and let me know how you get on
    Web design and Hosting solvetheweb.co.uk

  3. #3
    Member
    Join Date
    Oct 2003
    Location
    Norwich
    Posts
    87
    I hadn't heard of papervision before and I can't even find an official site for it. Is it plug in for flash or a separate software etc?

    So are you talking about doing a bit of coding within this papervision and then tweening a flash animation?

    Thanks for this info

  4. #4
    Junior Member
    Join Date
    Jul 2010
    Posts
    8
    this is a papervision of a cube=
    . #
    ####
    . #

    basially you make 6 flat sides and make some fancy code to place those sides in a 3d way

  5. #5
    Member
    Join Date
    Oct 2003
    Location
    Norwich
    Posts
    87
    what are the two dots in your little diagram?

    by fancy code you still mean AS3?

    cheeeers

  6. #6
    Junior Member
    Join Date
    Jul 2010
    Posts
    12
    Here's 2 examples using Away3D for rendering and jiglib for physics:

    http://active.tutsplus.com/tutorials...ne-and-away3d/

    http://www.nicoladestefanis.com/libr...io3d/index.php
    http://www.savagelook.com/blog - My Flash, AS3, & Away3d blog

  7. #7
    Member
    Join Date
    Oct 2003
    Location
    Norwich
    Posts
    87
    Many thanks for this folks. This is going to be interesting.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center