Find Jobs
Hire Freelancers

C# Coding - Game Fix

₹600-1500 INR

Closed
Posted almost 10 years ago

₹600-1500 INR

Paid on delivery
We have this code, which is code of a game. It has been written in C# using Unity 3D. Requirements: 1) Fix Code in order to run game successfully 2) Display "GAME OVER" when Ball (Game object) falls below Y-value of " -4" . 3) Show Button for Restart Game. --- Its a very basic fix, so we have a One-hour budget. using UnityEngine; using [login to view URL]; public class playerScript : MonoBehaviour { public float speed; //do I need this line? public GUIText countText; public GUIText winText; private int count; public GUIText restartText; public GUIText gameOverText; private bool gameOver; // THIS LINE OF CODE HAS BEEN RECENTLY ADD private bool restart; // THIS LINE OF CODE HAS BEEN RECENTLY ADD void Start () { gameOver = false;// THIS LINE OF CODE HAS BEEN RECENTLY ADD restart = false;// THIS LINE OF CODE HAS BEEN RECENTLY ADD [login to view URL] = "";// THIS LINE OF CODE HAS BEEN RECENTLY ADD [login to view URL] = ""; //text will not show at the beggining of the game. count = 0; setCountText (); [login to view URL] = ""; [login to view URL] = ""; } /*void Update () // This is code added. { // This is code added. if (restart) { // This is code added. // This is code added. if ([login to view URL] (KeyCode.R) // This is code added. { [login to view URL] ([login to view URL]);// This line of code restarts the game. } } } public void GameOver () // THIS LINE OF CODE HAS BEEN RECENTLY ADD { [login to view URL] = "GameOver!"; // THIS LINE OF CODE HAS BEEN RECENTLY ADD gameOver = true; // THIS LINE OF CODE HAS BEEN RECENTLY ADD }// THIS LINE OF CODE HAS BEEN RECENTLY ADD */ void FixedUpdate () { float moveHorizontal = [login to view URL]("Horizontal"); float moveVertical = [login to view URL] ("Vertical"); Vector3 movement =new Vector3(moveHorizontal, 0.0f, moveVertical); [login to view URL](movement); } void OnTriggerEnter(Collider other) { if ([login to view URL] == "pickUp") { [login to view URL] (false); count = count + 1; setCountText (); } } void setCountText () { [login to view URL] = "Count: " + [login to view URL](); if (count >= 35) [login to view URL] = "You Win!"; GameObject player = [login to view URL]("player"); if([login to view URL]>=-1) [login to view URL] = "You lose!"; } /*void update(){ float y; GameObject player = [login to view URL]("player"); if(count==1) { //[login to view URL] = "game over!"; //player.transform.position.y<-1 } }*/ }
Project ID: 5875841

About the project

7 proposals
Remote project
Active 10 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
7 freelancers are bidding on average ₹1,723 INR for this job
User Avatar
let me do it tomorrow :)
₹5,263 INR in 3 days
5.0 (21 reviews)
5.7
5.7
User Avatar
I'm a student at a Computer Science student, terminal year and right now I'm doing an internship at a company where I'm working in Unity 3d. If you choose me I will do it good, quick and exactly what you need, but I need details on what you want to do, just add me on skyp alex.nistor9. Cheers!
₹1,300 INR in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello, it´s an easy task, i can start working on it just when you prefer. You´ll be sending the unity project, or i have to start one whit this code?.
₹1,250 INR in 0 day
0.0 (0 reviews)
0.0
0.0
User Avatar
hi, Been using Unity 3D for 3 years now and have a degree in games programming, made a number of apps and i should have no trouble fixing your script for you. ELore
₹1,050 INR in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I have been working extensively with Unity for the past 6 months on several projects, so I am very familiar with creating simple Unity projects and debugging projects others have made. I have already reviewed the code you put up, and aside from a few syntax errors it does run, so I would be glad to share those errors with you. Here is an outline of the project I have created with your code: I have a project with a player object and a pickup object on a plane. The player object is moved with the arrow keys. When the player collides with the pickup object, the object disappears and the count is incremented. If the player falls off the level, the Game Over text is displayed, and a button is shown that restarts the level when pressed. I hope this is what you had in mind, at least in terms of functionality. Have a nice day! Aaron Ballard
₹1,000 INR in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Предложение еще не подано
₹1,250 INR in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello, I m full time developer and i assure you that you will get the perfect product and with in short time. I will provide you complete commented code. I have kept 700 and it says 950 billed to client.. i can make it at low cost too.. Skype ID: abdulahadone Regards, AbdulSamadGroup.
₹950 INR in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of INDIA
Ludhiana, India
0.0
0
Payment method verified
Member since Jun 13, 2013

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)
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.