Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by tidu1 · Dec 11, 2011 at 01:42 AM · javascripthtmldice

make dice game for two players

I am trying to make a double dice game for two player and I made some of it but I don't know how to write a code for the players and how to add the points for them. Can someone show code? Please??????????????????????

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ByteSheep · Dec 11, 2011 at 09:59 PM 0
Share

$$anonymous$$aking a dice game will probably not be the easiest of tasks, especially if you're new to coding. However there are plenty of great tutorials and sources that you can learn from, good luck.

avatar image Primo_Rexus · Dec 11, 2011 at 10:01 PM 2
Share

What merry_christmas said, with an important addition: Never, ever, ever ask for other people to give you code. It instantly tanks the respect other people hold for you. Ins$$anonymous$$d, attempt to solve the problem on your own and if you run into a problem, post that specific problem here -- people will be happy to help.

Good luck!

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by milali · Dec 11, 2011 at 11:11 PM

As the others have said, you won't get the code just dropped in your lap for a whole project. You could check the Asset store and see if someone will sell you that.

From a qsuedo point of view. You would have 2 cubes (physics box's attached) and you would need to know their orientation at start and then as you drop them give them a random rotational spin too, then the physics will handle the movement.

When they stop moving at a certain speed, dampen them to stop them moving at all. then read what orientation they are and they are your dice numbers.

as for 2 players over network, check the networking tutorials

and perhaps use less question marks :)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Trying to resize Unity WebPlayer control when resizing browser 1 Answer

(WebGL) Activate Unity Functions with HTML/Javascript 1 Answer

External call to a method not on the WebPlayer.html 1 Answer

Parse Array data to generate html 0 Answers

How to pass variables to my WEBapp through the html provided after building the app? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges