Find Jobs
Hire Freelancers

Unity 5 C# Script for 2D game!

$30-250 USD

Completed
Posted almost 9 years ago

$30-250 USD

Paid on delivery
Hello - I need a C# script for a 2D game that is being created in Unity 5. It is only one script that will be attached on the main camera. I want this script to force a certain aspect ratio and resolution regardless of the window or screen size. The resolution of the game is 1280x800px. If the window resolution of the unity player is higher than this, the game should be centered and the background should be a picture. Say if the resolution of the computer window was 1920x1080px, the game would be in a 1280x800px box and then there would a picture in the background surrounding the 1280x800px game box. If the screen size is less than 1280 in width or 800 in height, the resolution should keep the same aspect ratio and try to fit in as much as it can in respect to height first and then width. For example, if the max resolution of the game window was 1280x720px, the height of the game would be set to 720px and the width would be 1152px. The game would be centered, and thus the background picture would be visible from both sides since the width of the game is smaller than the width of the screen. Another example, if the resolution of the window was 800x600, the height of the game box would be 500px and the width would be 800px. The game box would be centered and the background picture would be visible from the top and bottom, since the window height is greater than the game box height. The game resolution and background picture should be able to be changed from the unity editor. If you have any questions about this job, please contact me. Thanks.
Project ID: 7596058

About the project

19 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Edit: Even though I am not yet hired for this project, I have still tried to write the code just out of curiosity. I have the demo ready, please message me if You are interested and I will send it to You for review. Evening! I actually have experience with a similar code project - a c# code to be added for a perspective camera which forces the game to maintain a certain aspect ratio(no stretching) while keeping as much of screen spaced used as possible. However, if the physical aspect ratio of the device screen is not that of the required one - it adds black pillar and letter boxes. I could send you an example code, not yet edited to meet Your specific needs. In any case, I'm sure it can be done. Regards, Adas Lokys
$30 USD in 3 days
0.0 (0 reviews)
0.0
0.0
19 freelancers are bidding on average $118 USD for this job
User Avatar
Hi! I can code it for you, exactly as per description. Regards, Konstantin.______________________________
$54 USD in 1 day
5.0 (10 reviews)
6.0
6.0
User Avatar
Hello sir. I have 5 years of game programming experience and more than 2 working on Unity. I can make this script in 1 hour or 2. Please contact me if you're interested in my offer.
$50 USD in 1 day
5.0 (11 reviews)
4.8
4.8
User Avatar
Seems like a very interesting project. I am pretty sure i can solve this task and would really like to get involved. Let me know if you find my bid acceptable, and i will provide a demo of my solution within 24h.
$150 USD in 2 days
5.0 (2 reviews)
3.7
3.7
User Avatar
chk my portfolio this will express my work and talent..............................................................................................................................................................
$144 USD in 3 days
5.0 (3 reviews)
3.6
3.6
User Avatar
Hi I have gone through your requiremnt and found myself suitable to do this job as i have already done similiar work before.. However the requiremnt is very much cleared to me ,but there are few queries . let me know if we can further discuss this over personal messaging. Regards
$155 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$83 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I already have the script, in this you can change the relation of aspect of the main camera from the inspector. This script generates a background camera at coordinates x, y indicated in the inspector, you must import the background image on the scene and give its coordinates to the ''background camera'' If you have any questions about the script, please consult.
$150 USD in 0 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Camera control is essential for every game. And maintain aspect ratio from a define size is always fun. I think it easily shows the developer's power :p. I can do it with proper documentation. So that you can use it later, if you wish. If you want to give me the job then you can contact me, else you can contact me for anything with unity 3d.
$111 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$50 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hey it's actually quite simple to do this sort of thing. You could have just asked on some of the forums if you wanted.. Anyway.. contact me.. i could help you out for free if you like. iamthearchitect001 'at' gmail 'dot' com If you want to do it through freelancer, I've quoted the minimum. I'm based out of the Delhi FYI. Cheers.
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I have already made a script that does that, I can do it again no problem. If you have any other scripts that need to be made, feel free to ask me again after.
$66 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
If you are using Canvas and need everything to work like a charm on all resolution I have the solution for you. I spent weeks studying on how to do this and achieved a solution, that for me is perfect.
$155 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hey employer, I've been developing video games for the past few years as a hobbyist using mainly the Unity engine and the C# programming language. I believe I could complete this project very quickly for you (1 to 2 days) for a low cost. Thanks for your time - hope to hear your response, Josh.
$55 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$230 USD in 7 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Laurel, United States
5.0
3
Payment method verified
Member since Aug 15, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.