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

How can i display hp for player - fps game for javascript

when i try use this code JAVAScript unity 5.1 : healthtext.guiText.text ="health :" + health; I'm getting this error but it working on unity 4.6.7 BCE0144: 'UnityEngine.Component.guiText' is obsolete....

View Article


Javascript 2d array Help

I need to input 10 integers between 1-10 and type square in a way that each frame contains one digit. for example input 3 integers should be like this: 11111 12221 12321 12221 11111 Here is my code:...

View Article


How to set speed limit of car?

I am developing a car game. When i press down arrow car get reverse faster like going forward. Here i want to set the reverse speed limit to 30mph. Anyone know about set speed limit of car?

View Article

How do perform the operations as per the commands at client side in socket...

I have been working on a Web Player game and its a betting game in which there are 10 objects which are started running after playing the game. Now I do receive the commands from the server and its...

View Article

How do I know the reason of not running my game smooth?

As I am stuck in my game. Its a Web Player game for which I have been working on...but its not running smooth as it consists of 10 game objects which are started running after playing until the winning...

View Article


JS objects in Unityscript || BCE0048: Type 'Object' does not support slicing.

#pragma strict import System.Collections.Generic; var speed : float; var shoot : KeyCode; private var gunSlot1Transform : Transform; private var gunSlot2Transform : Transform; private var...

View Article

Remove all objects that a certain type

At the moment using this, #pragma strict function OnMouseDown() { //Turns off yellow var yellow = GameObject.Find("Yellow(Clone)"); while (yellow != null) { yellow.SetActive(true); yellow =...

View Article

How to make a sprite retract to its original position?

I'm currently trying to implement a Yoshi's tongue, where it "whips" to a coordinate, and return back to it's original position. So far, I have gotten the tongue to leave the mouth, and travel...

View Article


How does the client command the server in Javascript?

My friend and I are working on an online FPS game, and right now we can't solve this problem. We want to have it so that when the client player hits the zombie, it commands the server to decrease the...

View Article


InvalidCastException

Hello! I'm having trouble translating the C# from the Cellular Automata tutorial into Javascript. I've built a constructor inside my function that creates a nested array variable called *matrix*. Then...

View Article

convert built in array to javascript error

Hey guys. I'm trying to convert a built in array to a javascript array, but I keep getting this error message: ArgumentNullException: Argument cannot be null. Parameter name: collection...

View Article

Clash of clans networking.

Ok my question is that does anyone know a good networking tutorial that works close to the way as clash of clans? So basically when player plays then it creates a server by its self. Then when he wants...

View Article

Variables not showing up in Inspector (JavaScript)

#pragma strict var rotationSpeed = 100; var jumpHeight = 8; private var isFalling = false function Update () { //Handle ball rotation var rotation : float = Input.GetAxis ("Horizontal") *...

View Article


A certain string is causing trouble! (Javascript)

I've the strange problem, that a certein String is causing trouble when it is called from another script. If it is called by: if (StoredObject.GetComponent(ItemDefinition).ItemPurpose == "Cooking"){...

View Article

Q\微274848895IBU毕业证IBU学历认证办理美国印地安那大学伯明顿分校毕业证成绩单真实可查Indiana University,...

教育部认证 面向美国留学生提供以下服务: 【★毕业证、成绩单等全套材料,从防伪到印刷,从水印到钢印烫金,与学校100%相同】 【★真实使馆认证(留学人员回国证明),使馆存档可通过大使馆查询确认】 【★真实教育部认证,教育部存档,教育部留服网站永久可查】 【★真实留信认证,留信网入库存档,永久可查】 联系人:Davie QQ:274848895 微信号:274848895...

View Article


Problem with initialize static array of classes in JavaScript

Hello everybody. I cannot find solution by myself nor on internet. I have problems with static array in my script. I want to change size or initialize my Equipment menu in script so when i click...

View Article

Changing the Mouse's Range for OnMouse events

I am working on a project where a button is located far away from the elevator. Once the button is clicked (OnMouseUp) the elevators animation is activated. I want to know how would I shorten the...

View Article


The button wont accept the method

I was using Winbridge to limit the features on the trial version https://www.assetstore.unity3d.com/en/#!/content/18924 function StartGame () { if (Store.IsFullAppActive (false)) {...

View Article

(Q\微274848895)UIUC毕业证办理美国伊利诺伊大学香槟分校毕业证成绩单UIUC学历认证存档可查使馆认证University of...

Q/微信274848895毕业证 成绩单 回国证明 学历认证 留信认证 网上可查永久存档 ★办理留信网认证。(国家专业人才认证中心颁发入库证书,将在网内查询个人身份证信息后,同步读取人才网入库信息。) --------------------------------留学信息咨询 留学服务中心...

View Article

Wrong use od if & else!?

I have the problem, that my if statement causes trouble. Here is the code asking for a statement: if ("Meat" in ContentName){ if (ItemScript.ItemCondition == "raw"){...

View Article
Browsing all 1875 articles
Browse latest View live


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