Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 gbk123 · Sep 28, 2011 at 03:13 PM · playerball

Design 3D ping pong using unity

Hi i am beginner with using 3D unity , i have only 3 days to learn it and now less than 24 hours left to design my game , i have read the basic tutorials and some examples to start designing the game.

so far I managed to design the basic things but i just can't figure out , what is the script to make the players interact with each other !! i mean when player 1 hit the ball , player 2 should hit back ...... still have no clue how to do it . Could you please help me ??

the only way that i think about that to set the ball as a target then make player 2 moves to that target , but i don't know how to make the player move toward the target .

also, when player 1 hit the ball, it act like a football ,i added a force script into it .

basically now I have designed a football game with only one player !!!!

?? any idea please ?? i appreciate any help

THANK YOU

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 gbk123 · Sep 28, 2011 at 05:21 PM 0
Share

thank you so much for your help.

so basically let me tell you what i did quickly : 1- i add a 2 cylinder, as 2 player ( player 1 , player 2 ) 2- sphere as a ball 3- a cube as the floor

  • player 1 which is the user , i attached the ( $$anonymous$$OVE SCRIPT to it ).

  • player 2 which is going to move automatically toward the ball and hit back ( the part that i need help with )

  • the ball i attached a force script to it , so when player 1 hit the space bar it will call the component of the force script to add force to the ball ( it is not working yet!!!)

once again thank you !

avatar image Bunny83 · Sep 28, 2011 at 05:23 PM 0
Share

Don't post an answer if it is no answer to the question. To add more details to your question use the edit button below your question or add comments.

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by timsk · Sep 28, 2011 at 03:20 PM

just set up the controls in the input, one with WASD the other with the arrow keys, make 1 set of controls move 1 paddle and the other set move the other?

Unless your thinking of networking the game over 2 computers, which is an entire subject on its own

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
avatar image
1

Answer by supergamespawn · Sep 28, 2011 at 04:38 PM

don't forget to add rigid bodys and player controllers

Comment
Add comment · Show 1 · 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
avatar image syclamoth · Sep 28, 2011 at 04:49 PM 1
Share

But without the player controllers. Nobody wants player controllers.

avatar image
0

Answer by scripter97 · Jan 11, 2012 at 07:12 AM

Hi I'm trying to make a "simple" game as an assignment for school and I've been thinking about something like a ping pong or space invaders game. What was the basic tutorial that you wrote about? Can someone recommend something?:D

Comment
Add comment · Show 2 · 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
avatar image venkspower · Jan 11, 2012 at 07:24 AM 1
Share

Please post your queries as comments, not answers.

avatar image syclamoth · Jan 11, 2012 at 07:25 AM 0
Share

Please don't go digging up old questions without anything new to add. Post your own question, or (since this is probably what I'd tell you to do anyway) search it on Google or the search bar here first.

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

9 People are following this question.

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

Related Questions

how to make a player die on collision 2 Answers

ROLL a ball towards the player 1 Answer

Player flies PROBLEM 1 Answer

Make Ball Roll after Player Runs into it? 1 Answer

the code work bat is not push the ball but with speed of the character ? 2 Answers


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