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

WebGL video texture not working

I want to play a video in WebGL but MovieTextures re not supported. i've tried using Jonas' Simple MoTextures Sample for WebGL and it works great, but only with certain videos. I've deduced that it...

View Article


il2cpp type casting issue

Hi there, i need some help i have developed mobile game on unity 4.6.7 when building entire project, i had no problem on unity 4.6.7 (building target is 64bit iOS Machine) by the way, i encountered...

View Article


If script not working as expected - camera switch

I have been working for a couple of days on the script below and it compiles without error. However, when I am close to the object and press E...nothing happens, no cam,era switch, no debug log... It's...

View Article

WebGL compiles with errors in scripts

Hi, Does anyone else have an issue with the WebGL compiling with a ton of errors in the javascript files it creates? I have emscrypton installed, and even with a completely blank project, I get a bunch...

View Article

Why are my android GUIs not showing and how can I fix it?

Hello, fellow unity users. I started developing my first android game recently and I've already come across something strange ☹. I'm creating a button controller for my character and here is my code:...

View Article


Modifying controls on code help

Hey all I need help with a car code I found on a tutorial. I would like to modify the controls so that the car only moves via the arrow keys, the code at the moment uses the arrows and WASD and also...

View Article

If statement is always true

#pragma strict var MaxFallDistance = -110; function Update () { if(transform.position.y <= MaxFallDistance); { Debug.Log ("We good fam"); } } no matter where i am the if statement is always true...

View Article

Is it possible to change Rect Transform Scale throw script

Is it possible to change Rect Transform Scale throw script ![alt text][1] [1]: /storage/temp/64870-untitled.png

View Article


SmoothDamp not working perfectly?

So I'm trying to make a sort of drawer that contains items the player can use. The items (which are prefabs) will all be children of an empty object that will move them all together. The code I have...

View Article


UnassignedReferenceException: The variable closest of TAKE has not been...

the codse that doesn't work, are after the line **else** of the function **OnTriggerStay**, witch are: closest.transform.parent = null; closest.GetComponent.().useGravity = true; if I delete those two...

View Article

Player attacking enemy script

HI! What I cannot seem to accomplish is to get my animated sword to deal damage to the enemy capsule. This is the script that I put on my sword: var eHP = EnemyOne.MyHP; var eMaxHP = EnemyOne.MyMaxHP;...

View Article

Create a slot - size spoiler in javascript

Hello Unity Community, I asked me how to make a javascript where i can enter a number to a input field and it make slots where i can add gameobjects to enable. This is my script: #pragma strict var...

View Article

Best way to emulate Swift String Interpolation in UnityScript?

Hello, I've been recently reading up on Swift for other projects and really like [how they implement string interpolation][1] - I have always wanted something like this for UnityScript. Anyone know of...

View Article


Idle , Move and Attack animations

I want the enemy to idle , follow , and attack the player . The thing is I want the enemy to use it's move animation when following the player , and use the attack animation when the player is in...

View Article

How to change bullet on impact?

Hi everyone, I'm making a 3rd person shooter that involves shooting with paint bullet. Currently my bullets are rigid but I want them to behave like a liquid on impact with other players. Can you...

View Article


Level up system problem

**Hello there!** Right now I'm working on a level up system script but I've encountered a problem. When I get XP, the XP bar moves outside the box (look at the image). When I'm level 1 it works fine,...

View Article

How to make a GUI bar that counts items collected

I want to display the amount of items the players collect in a bar on the screen but I cant figure out how to write that in javascript. This is the code I have. var itemCount : int; function...

View Article


How can I access more Hinge Joints?

I made and openable box with hinge joints. When I press E on it, it sets the hinge.limit.max from 0 to 170. The problem is that it only affects the main object/prefab. Even when I try to open an other...

View Article

Fix for Enemy AI script

So, I'm making a 3rd person shooter. I have this script for the Enemy AI which is attached to all enemy characters. The problem is they either all shoot at me fast at once, and kill me instantly. Or,...

View Article

Téléportation

bonjour a tous j'ai un gros souci je suis en train de créer un jeu et en ce moment je suis sur la téléportation de mon personnage je voudrais que ce personnage se téléporte sur une autre scène ce que...

View Article
Browsing all 1875 articles
Browse latest View live


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