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

Camera Script remove a part.

Hello Unity Members. I found a free script online( i know its bad and might be illegal but thats the only thing i found online).Anyways, it's a camera script that rotates camera around player(target)...

View Article


Error with linking an animation on an object to an action

I'm trying to play an animation on an weapon when you attack but the code that I had was outdated and i can't figure out how to make the new code work. action: Melee weapon: Sword Animation: Attack...

View Article


Android Build Horribly Laggy

I've been using Unity for a while but this is the first time I've built to a mobile device. My project is very simple, with one short script and a handful of meshes and rigidbodies. However, when I...

View Article

'OpenClose' is not a member of 'Pushpull' Javascript help

Hey all, I'm trying to learn to code a Jedi type of force code that allows the pushing and pulling of objects. I'm just having trouble with what I guess is a pretty easy fix. This is the code for the...

View Article

Function Update not working

I have a javascript that is supposed to let you pickup a battery but other stuff happens but when the script gets to the function update, i get errors. Can someone PLEASE help var monster : GameObject;...

View Article


Objects not moving smoothly with Vector3.Lerp

So I'm trying to make a drawer of sorts that will pull a couple of prefabs from out of the frame. However I've been trying to get them to smoothly move from out of frame into frame and I can't seem to...

View Article

how to not repeat random array

hey, im new at unity. I got a little problem, im using array to random gameobject, but i want no repeating twice on that gameobject, here my script var q1 : GameObject; var q2 : GameObject; var q3 :...

View Article

how to not repeat random array

hey, im new at unity. I got a little problem, im using array to random gameobject, but i want no repeating twice on that gameobject, here my script " var q1 : GameObject; var q2 : GameObject; var q3 :...

View Article


How to start a timer after an update

I have this timer script that works fine and is displayed on text but the timer starts as soon as I hit the play button instead of when my LaunchLane1 Function is triggered.In case you're wondering the...

View Article


How do I make a Game Object invisible?

Hi, I'm working on a multiplayer project and I want to make it so you can't see certain objects such as your player model but you can see others. I can't do different layers because then all players...

View Article

Ball not moving in simple game,Moving ball using keyboard

Ok, so I'm having trouble with making my ball move in Unity using the keyboard for a simple game I'm doing...I've been at this for hours now and I cannot figure out for the life of me what the problem...

View Article

[WEBGL] How to separate .js

According to emscripten docs (http://kripken.github.io/emscripten-site/docs/optimizing/Optimizing-Code.html) it is possible to make emscripten separate .js file. Is it possible to split that file when...

View Article

Value gets plus 5 and i didnt even press a button.

My "damagee" value is getting every second + 5 without pressing a button but why ??? var skin:GUISkin; public static var damagee:float = 25; function OnGUI () { GUI.skin = skin; GUI.Label(Rect...

View Article


How can I change my player control method to use a touch screen ?? Pong-clone 2D

Hello, I'm a beginner in programmation and I used Unity to create a little pong-clone in 2D (Web based). Now I would like to build it for my Android phone, but I can't figure out how to control the...

View Article

BCE0005: Unknown identifier: 'Cardboard'.

Hi, When I use if(Cardboard.SDK.CardboardTriggered){ some code } in Javascript I get error Unknown identifier: 'Cardboard'. My Cardboard SDK is added as an asset in Unity. Does this only work in C# or...

View Article


Can't change animator variable

It was working until I set the script up for animation. `#pragma strict import UnityEngine; import UnityEngine.Networking; public class CharScript extends NetworkBehaviour{ public var anim : Animator;...

View Article

need a login/password protected scene???

Hi, so i'm new to JS and C# and dont really know much about them, i was wondering if it would be possible to password protect a scene so to speak, like, type in a code, click enter, and it loads a...

View Article


UNET NetworkBehaviour

import UnityEngine.Networking; import UnityEngine.UI; public var hedef : Transform; private var canAttack : boolean; var hiz : float = 250; var Efekt : Rigidbody; var ses : AudioClip; var cooldown :...

View Article

How to run javascript socket.io functions from game

Hi, I have created a socket.io app, running on my pc. I would like to run socket.io from my game and emit data, so that I could see the result in my browser, on the app. at the moment, I can type...

View Article

How do you set a score limit to end the game?

Im working on a Pong remake and after one of the players score 5 points I want the game to show who won (i.e player 1 wins or player 2 wins) then stops the game and returns to the main menu. How do I...

View Article
Browsing all 1875 articles
Browse latest View live


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