• 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 robertofantasy · Sep 11, 2012 at 07:12 PM · camera

restriction

hello i have a question and ask before and it is not answered right . my friends it is i think very easy i have a 2d side scrolling game and i have orthographic camera and this camera is not moving instead background moves i restrict my player with absolout float with seeing in game tab that surely is not right because when i change game tab or build game the player go off screen .

ok what is solution how can get position of my camera view i mean that rectangle show in editor view please if write a code write it in c# if you cant write in VB

please it very very very IMPORTAnt

Comment
Add comment · Show 9
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 robertofantasy · Sep 12, 2012 at 07:28 AM 0
Share

no one to help ?

avatar image fafase · Sep 12, 2012 at 07:33 AM 0
Share

So you want the background to move and not the camera or the background is moving and you want the camera to move?

avatar image robertofantasy · Sep 12, 2012 at 09:39 AM 0
Share

none of them i want my player dont go off view the camera

avatar image fafase · Sep 13, 2012 at 05:35 AM 2
Share

I aksked you a question in order to help, you could answer it? Also, posting comments and answers to poke people for help is simply banned from most forums. For instance, App hub moderators would have simply removed you from the list.

So now, some people have come here but you have not given any clue about how you are doing, start there and maybe we will fix you.

avatar image AlucardJay · Sep 13, 2012 at 07:59 AM 1
Share

You should pay attention to what fafase is saying. It is Important. We have tried to help, but you keep demanding help, without looking at improving the way you ask questions.

READ THIS : http://answers.unity3d.com/questions/133869/how-to-ask-a-good-question.html

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by AlucardJay · Sep 13, 2012 at 08:01 AM

Did you do the Space Shooter Tutorial I posted on this question? : http://answers.unity3d.com/questions/315051/2d-targetting-problem.html

That should have covered stopping the spaceship from moving off the screen. You can use Mathf.Clamp to set the boundaries of the spaceship.

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
0

Answer by robertofantasy · Sep 12, 2012 at 09:53 PM

OK LIKE BEFORE THAT I ASK THIS QUESTION , I DONT FIND MY ANSWER THANK YOU ANYWAY

Comment
Add comment · Show 3 · 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 AlucardJay · Sep 13, 2012 at 07:58 AM 1
Share

Hi There.

Please don't post comments as answers. Post comments by clicking the [add new comment] button, a window then open for you to type in. Answer fields are for answers only, as this is a knowledge base.

You can convert this answer to a comment (or just edit your original question), you'll also get a better chance of getting an actual answer if the main list shows none or one answer in blue =]

Also :

You should pay attention to what fafase is saying. It is Important. We have tried to help, but you keep demanding help, without looking at improving the way you ask questions. Have you tried to post a question in english And then your own language, maybe someone will understand, or be able to put it through a translator.

Read these :

the FAQ appears at the top of the page : http://answers.unity3d.com/page/faq.html

also : http://answers.unity3d.com/questions/133869/how-to-ask-a-good-question.html

Sorry, but your question is too broad, and this is not the place to ask for scripts. Unity Answers and its community is here to help you solve any Unity-related problems you have, not give away free code. If you don't know how to write code, I suggest learning Unity's Java Script (its really easy), but if you don't have time, or whatever, then you can try asking your question on the Unity Forums. I hope you can get an answer!

Also, use google. Do tutorials, and learn how to use Unity.

avatar image robertofantasy · Sep 13, 2012 at 04:58 PM 0
Share

hey dear friend when i have no idea how something work what am must doing ? anyway about unity it is 'answers.unity' for me it means all question that i have about unity

avatar image robertofantasy · Sep 13, 2012 at 04:58 PM 0
Share

ok with thanks all of you trying to help and maybe i cant say clearly my problem but i find my answer it was that i have free aspect and when i change the to constant aspect ratio my problem solved

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

11 People are following this question.

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

Related Questions

How to make camera position relative to a specific target. 1 Answer

Character controller and MouseOrbit Camera(don't work togheter) 2 Answers

How Come My Gear VR/Oculus Project Doesn't Have Split Cameras? 0 Answers

Drawing a minimap - need an advice 1 Answer

How to move editor to a specific point? 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