Quantcast
Channel: Questions in topic: "javascipt"
Browsing all 1875 articles
Browse latest View live
↧

Jimmy vegas fps tutorial converting to c#

Hi I was wondering if anyone can convert Jimmy vegas's javascript to c# for me, I have got up to episode 4 with converting to c# but I am stuck on episode 5. Here's episode 4...

View Article


WebGL error after hosting

Hi, after i build a WebGL build, it runs correctly from the local disk. when i host it to the server to embed it to my website, it throws the following error. in firefox An error occured running the...

View Article


Unity doesn't recognize Java version on Mac

I have a problem with Unity version 5.5 (I think it's that version, downloaded it couple of days ago) So anyway, just make something clear, I'm a cooomplete beginner, not even making a game, just a...

View Article

convert java to c#

#pragma strict var spawn_point : Transform; var Gamecamera : Transform; function playerRespawn(){ transform.position = spawn_point.position; } function Update(){ Gamecamera.LookAt(this.transform); var...

View Article

How do I script speed in java?

I'm making a game where you're a player with special abilities, where "q" switches gravity on and off and "e" is going to change your movement speed. I can't seem to get my coding right for the speed...

View Article


Hashtable as object literal serialization toJSON

No matter how hard i try i just cant get my hashtable serialized with JSONUtilities... //Atributes @SerializeField private var Attributes = new Hashtable({ "strength" : 1, "agility" : 1, "mana" : 1,...

View Article

Cant get Monodevolop to work

Hey I got a problem with monoDevolop on my computer, when I open the script, it tells me- "Could not load project " blah blah blah, I  then clicked on the "ok" button and it freezes making it...

View Article

Changing Audio between scenes (Javascript)

I am trying to make a menu for my game, I have an audio source on the first scene, which starts the background music and then I have DontDestroyOnLoad so that the music continues when I change between...

View Article


How do i make it so when you are touched you are on the other teamlike in...

Is there somekind of coding that has to be done or something someone please help and if someone can make a video on it please do Thank you in advance

View Article


How do I access a variable/class from a C# file in a JS file?

I am trying to access the currentState variable from my 'TextManagerLvl1.cs' script which is located in the same place, however I get the below error.>...

View Article

Left Click Once, Does An Action, Left Click Again, Does Another Action.,

Hi. I'm trying to make a code that makes it when you left mouse click an object you pick it up, but when you press the left mouse button again you drop the item. Heres my code: var onhand : Transform;...

View Article

How can i check that is an object is withhin a collider? JS

I want to check that an object is in an area. So if you click it when it's in the specified are it gives you a point but if you click on it without it's being in the area you don't got a point. I use...

View Article

Error while creating an object

Hi, I got the following error appearing when i run my code. > NullReferenceException: Object reference not set to an instance of an object> Login+$Login$2+$.MoveNext () (at...

View Article


How would you make a shapeshifting mechanic in a game?

I am very new to all this and I heard the best way to start game designing is through unity. My idea is for my character to shift into a wolf, I've searched through youtube and other forums but...

View Article

"WARNING: Boolean expression will always have the same value."

Hello! I am trying to make it to where my gun won't fire until the reload animation is finished, but I'm having some trouble. I don't see what is wrong with `{if...

View Article


Multiple IsTriggerStay check for several game objects from one script

(Sorry for my english) I have script, that controlls array of moving game objects. This objects moving through several "rooms" wich is triggers. I need to find out for every game object from this...

View Article

Can I "spawn" a prefab in a random location without attaching the script to...

Can I spawn a prefab in a random location by having a script that is not a component of an object? Can scripts be run without being connected to an object? And, can I specify an x, y position for this...

View Article


public rigidbody in Javascript

What is the equivalent of public Rigidbody m_Example; //this is C# in Javascript? Would it be different if it was Transform or AudioSource, etc.?

View Article

Translate this javascript for me?

can anyone convert this javascript into a C# script for me? just real quick help past this would be great: var target : Transform; var distance = 10.0; var xSpeed = 250.0; var ySpeed = 120.0; var...

View Article

Reach other object animator when collide and play animation

Hello, I'm trying to make a game. but i'm stuck now for days, maybe it's because i'm using C# and JS. But what i want to happen is: when the player hold the arrow down and an object collide with the...

View Article
Browsing all 1875 articles
Browse latest View live