Quantcast
Channel: Questions in topic: "write-my-code"
Browsing latest articles
Browse All 92 View Live
↧

growing / feeding NEED HELP!!!

i have a game and i have everything set perfectly, but the most important part. I can't think of how to code it in javascript. My game is a 3rd person shooting a carrot at a rabbit. I have everything...

View Article


How can i Select a GameObject (Player) and be able to move that from point A...

View Article


I really need a script to play an audio that I have when the raycast from my...

View Article

how to make road like tample run 2

i'm beggner.

View Article

How to make trigger removes script.

Hi,i want script removes when player is in trigger,but how? Here is my script,its unfinished,i dont know what to do next,so please help. :) function OnTriggerEnter (other : Collider) { if (other.tag ==...

View Article


Have a 'Torch' script toggle on and off

So far i have searched and i have found a script which is perfect for what i am doing although there is no toggle on and off. the script is a timer which after a certain amount of time, it flickers the...

View Article

Text appear on screen when I stand over object.

let's say i have a plane. Let's just call it "floor". I want text to popup sort of like a button. I know how to do part of this. BUT I NEED IT TO CONSTANTLY CHECK F I AM OVER THE "Floor". I prefer...

View Article

Fading GUI text

Ive been looking around and from different posts I've put together a script that has a GUI text in the middle of the screen for certain amount of time. However it doesn't seem to work properly. The GUI...

View Article


Make gameobject size always be the same

I have a 3d world, perspective camera, moving character and one gameobject, which I want to seem always the equal size on screen(for example, half of game screen size). If person is too far from that...

View Article


how to press 2 sprites to display other 1 sprite?

Hi, all . I have 3 sprites named A,B,C. Now I wish after press A with B together, the C will appear, how to write the script? sorry my script is poor. thank you !

View Article

How to make a character go forward FOREVER?

I need to make a character move forward FOREVER! Please help me and also help me become a pumpkin!

View Article

how do you switch guns from single shot to full auto?

My friend and i are just making a basic FPS game (i know very cliche) and he's made a revolver and a Thompson using blender, I've made the revolver shoot with every click but when i switch weapons to...

View Article

how to make a game like Diablo 3

hello friends this question summarize all xD as I create the inventory system, the skill, the type of camera etc. I ask is because a lot xD but please if you could help me with most running my scripts...

View Article


How do i make water trigger

How Do I Make It So When You Go Under Water It Becomes blurry and foggy :( Plz Help And When You Walk Into The Water There is A Splash Sound And Splashes :D ~Thanks

View Article

Manipulate gameobjects, pick up & rotate

I am planning to have a gameobject that can be picked up by a mouse click and when the mouse is released, the object will fall. Also, i want to manipulate the object by pressing a key (X) to rotate the...

View Article


How do I spawn a random prefab?

I want to spawn a random prefab from my list. The prefabs are players such as a Ninja or a Cyborg. So when the game starts, a player prefab from my list is spawn that the player can control. So every...

View Article

Adding stamina to existing script

I found a script that adds sprinting, crouching, etc to CharacterMotor.js. Now i'm trying to add a stamina bar and am having difficulty. **sprint.js** var walkSpeed: float = 8; var crchSpeed: float =...

View Article


Melee Attack

I'm trying to make a melee attack so I put rigidbodies(iskinematic) to object and sword. I also added coliders but the problem is sword may touch the collider when the character moves a bit without...

View Article

i cant seem to clamp or smooth the rotateTouchPad could someone help me out?

#pragma strict @script RequireComponent( CharacterController ) @script AddComponentMenu("Camera-Control/Smooth Look At") private var character : CharacterController; private var thisTransform :...

View Article

Creating a list of buttons that can be scrolled left and right?

Hi all, I have to create the left and right arrows which can be clicked to scroll through a list of menu options. The list should be clickable buttons. Per button click I want to scroll one item in...

View Article

Smooth Slow Motion

I was wondering how I would make a slow motion C# script,(I'm new to unity lol) That would still be smooth, but still have accurate and smooth physics.

View Article


2d camera scrolling

Hey I'm new to unity and I was wondering how to make the camera move left or right when the player reaches the edge of the camera and stop when it reaches the edge of the game area?

View Article


basic 2D camera setup

Hey I'm new to unity and I was wondering how to make the camera move left or right when the player reaches the edge of the camera and stop when it reaches the edge of the game area?

View Article

Camera speed

here is the cs file. how to make it follow player faster? and can you convert it to java file? using UnityEngine; using System.Collections; public class CameraFollow : MonoBehaviour { public float...

View Article

How do I make my character animations work?

I need a walk sprint and idle animation script all in one when shift + uparrow is pressed he sprints and when shift is released it continues walk animation please help.

View Article


add someThing on sphere surface

I want to add a cub on the sphere surface and random the possition.Like add someThing on the planet.But I don't know how to do.thx.

View Article

Anyone Willing To Script My Model Please?

Hello,Is There Anyone Who Would Be Able To Script My Vehicle Model For Me Please.I Have Tried Over And Over Again And Just Can't Get It Right,It Would be Much Appreciated ;)

View Article

What's wrong with this code and is there an easier way to write it!?

Hi, all I want to do is instantiate a prefab I already have setup at a random spawn point. The spawn points are just Empty Game Objects and there are a few of them setup on my map. I have written this...

View Article

Raycast Shoot Automatic Fire to deal continual damage to AI

Hello everyone. Hope that I can get some help here as sifting through Unity answers I couldn't seem to find an answer. SO, basically, the below script works to damage the AI in my game, but when I hold...

View Article



How do I rotate my Camera around my sphere using the arrow keys?

My code is currently this, also it's not much however please add onto it. public GameObject playerpos; private float distancey = 3.0f; private float distancex = -4.0f; void Update() {...

View Article
Browsing latest articles
Browse All 92 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>