Quantcast
Channel: Questions in topic: "javascripting"
Browsing all 105 articles
Browse latest View live
↧

Progresive sound ?

Hi there! ... i have a door system, when i press on the door and drag my mouse to the sides , the door open (left to open, right to close) ... my question is how i can play a progresive sound?, how i...

View Article


javascript to unity javascript conversion

hey, why does this one works on websites but not in Unity? are there any solutions? What i have to write instead? Thanks for reading. this.makeChildNodes = function (map, heuristic, cutCorners, target)...

View Article


Player Prefs High Score User Name Entry?

Hello. How do I use playerprefs for name entries? The high score board is able to record up to 5 scores currently and I would like it to record the user name as well. I want the user to type their name...

View Article

Play Different Animation Using the Same Key Press?

I have been trying to figure out a solution to this for hours but just cannot. I want to be able to play a different animation using the same key press. heres what Im doing so far, if the player is...

View Article

creating an object using javascript

I want to create an object within given points on the plane. I want to know if this is possible using javascript....example i gave certain points that form a surface of a sphere, however, the object...

View Article


having prob while accessing java boolean from c# script

using UnityEngine; using System.Collections; [AddComponentMenu("Camera-Control/Keyboard Orbit")] public class Guikeys : MonoBehaviour { private info myscript; void OnGUI(){ if(GUI.RepeatButton(new...

View Article

Harry potter style game

Hello i am creating a harry potter style first person game for my I.T project, the only problem is that i don't know scripting can anyone please post scripts for wingardium leviosa (levitating spel to...

View Article

Using the Texture Swap Animator js I found in the Wiki to create a gif like...

Very new to coding so it might be something small I'm over looking or forgetting but just cant seem to be able to get this code to work for me, I apply it to a plane add in all my frames and when i hit...

View Article


Head bob ? JavaScript

Hello Unity Answer Community, How do you go about scripting a Head Bobbing script for the main camera ? Thank you for your time.

View Article


scripting help needed by a Script-illiterate

I have my Art gallery ready and I want to add some interactivity to display each paint's information when the viewer look at each one. So my idea is to setup a sphere collider close to each paint so...

View Article

How Do You Select Prefabs or Instantiated Objects with the left Mouse Button?

I now know how to select game objects with the left mouse button but does anyone know how to select instantiated objects with the left mouse button? So for example if I wanted to instantiate 10 cubes...

View Article

Function not valid macro

what does this mean? "function not valid macro" thats an error im getting. heres the code Function update () { if (input.GetButton("Forward")){ transform.Translate(transform.forward * moveSpeed *...

View Article

I got a bunch of errors that make no sense to me. Help.

This is for a pause menu and I got a lot of unreasonable errors. I am also trying to get a foothold in Java scripting. These are the errors. Assets/Scripts/PauseMenu.js(1,24): BCE0043: Unexpected...

View Article


Enemy Script

Hi there, I got problems with the following script. It is an enemy script, like the one for Slender. It works fine, but when there is more than one page in the scene, the second or third can't be...

View Article

Is there any way to destroy a Transform?

Just a really quick question. Is there any way to destroy a transform? (please answer in JavaScript and C#)

View Article


How should I write this Class out?

Hi everyone I am having issues writing one of my classes with in a class simulation in java script. The simulation is that of out class room. Eventually a computer with catch fire and other classes...

View Article

Changing Material In A Script? [Sorted]

How would I change a material in a script. I am generating infinite terrain though for my blocks I can't change the material... Everybody elses code doesn't work on mine for changing materials.

View Article


how to run 3rd person automaticaly

I am making a racing game in unity like Temple Run where the player needs to constantly run and collect fruits/ power ups. I am using the 3rd person default construction worker to make this work. But...

View Article

Where is the missing semicolon?

I just need to get the objects with the "Gravity" tag. Here is the error:Assets/Scripts/PlanetGravity.js(11,24): UCE0001: ';' expected. Insert a semicolon at the end. Here is the line: var...

View Article

How I can find the complete event of my animation

I am creating a demo in which I play two animation one is default which always run in background and one is when I clicked on my button. I want my default animation stops until my clicked animation not...

View Article
Browsing all 105 articles
Browse latest View live


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