How do I code this Javascript?,What is the Javascript code to move to...
I am new to Javascript coding. I would like to know how to move to a specified page based on the user's chosen button. For example: There are 2 buttons: #yes and #no If I choose #yes, there is a box...
View ArticleBCE0019 "enabled" is not a member of "Object"(On JavaScript Script)
Basically, I am making a psychology game and I want to make it so you can't collide with an object ahead of you until you collide with one before it. Therefore I want to turn off MeshCollider so they...
View ArticleUsing C# and JS together, List types won't agree
I'm trying to convert a medium sized JS game into C# because JS support is sunsetting in the near future. I'm trying to make sure the game is working as I convert so I'm doing it file by file. I'm...
View ArticleOn trigger turn off particles and lights make room dark,On trigger by FPC...
https://gyazo.com/cb237ff1aaaa812d7fbaf28a3ecff797 This is a temple underground normally it is pitch black as its a horror game, when you get to the top of the temple there is fire lighting up the room...
View ArticleHow to add a " Achievement unlocked " text and a collectible after completing...
I have 4 objectives in my game and when I complete them I want to add a text displaying a reward and an item but I have difficulties creating the script (java/c# preferred).Any help would be...
View Article[WebGL] Base64 string passed from javascript contains invalid characters
Hello! In my WebGL project I want to implement a feature that lets players import/export their savefiles as base64 strings. Since getting proper copy/paste in WebGL is such a pain, I decided to deal...
View ArticleAn error ocurred running the Unity content of this page
I made a web build of my game, when I run it I get this error ![alt text][1] Javascript console has this ![alt text][2] And this ![alt text][3] First time this has ever happened, I had no clue what any...
View ArticleHow to create a 3D Cityengine campus with interactive icons?
Hi, So, I am trying to create this in Unity (minus the revolving camera): https://s3.amazonaws.com/3d.cl3ver.com/0G7W2?tryitlocation=3&autoplay=1 I have already created my 3D campus in Cityengine....
View ArticleAssign another javascript as Var from script
I have this health script which I have somewhat edited to have a 4 second delay before respawning> Anyway Because each of the players use this same health script I can reference each player's...
View ArticleDynamically draw line graph using array values (javascript preferred)
Hi all, I have stored an array of transform values for an object in a game. I would like to create a plotted graph of these transform values (x) over time (y), when the timer stops ( though not...
View ArticleUpdating an array indices dynamically
All, I have a script that records the time and 3D transform positions since game load. I want to end up with an array like this, which records all of the positions and timestamps collected for the...
View Articleconvert string to array to write to document
I have a string that looks like this: str = "{ "number" : "1", "street" : "one"}, { "number" : "2", "street" : "two" }, { "number" : "3", "street" : "three" }, { "number" : "4", "street" : "four" },...
View Articlehow I change this Js code for 2D
how I change this Js code for 2D #pragma strict var baritita : float; var x : float; var y : float; var z : float; function OnTriggerStay (other : Collider) { if (other.attachedRigidbody)...
View ArticleJump Script not Working JavaScript
I am working on a double jump script for a game I am making but when I run the game my character does not jump at all, not once nor twice. I am not sure what the problem with the script is I was...
View ArticlePolymer: Function take some time to return false, How to resolve it?
I tried `dom-if` OR `hidden` attribute to hide DOM but it display for a while because my function take some time to response `false`. is there any way like by default hide DOM and show based on result?...
View ArticleRevMobIOS & CarController Error
Hello, First thing first, sorry if I'm not writing this correctly or if I am doing anything wrong, I'm new to the forum ! So my problem is that I just bought an asset and there's nothing working, The...
View ArticleHow to integrate tensorflow.js in a javascript Unity Project?
Unity always had javascript support. So, I was thinking is it possible to integrate `tensorflow.js` in Unity Projects? Is it a planned feature?
View ArticleHelp with reloading gun.
I need help with reloading my pistol. The problem I'm having is that on one time when the clip runs out, it runs fine. But then when I have to reload again the next time, it won't wait to do it, it...
View ArticleUnable to use parameter in javascript.
Hi, I'm trying to make a script that send values from a javascript script to a C# script. My problem is that I can't get the functions that send the info to accept a parameter. Here is my script....
View ArticleC# to .JS (Javascripts/unityscripts) convert - Unity help
Hey, I worked on a Unity project for a long time. I have write the most script's in javacodes so JS (Javascripts/unityscripts), but now I made a mistake. I would convert one Javascript Unity project to...
View Article