Using Smartfox2X with Unity for a Windows Store app
I am trying to build a program with Unity that connects to a Smartfox server, but do so using the Windows Store build option. Ive gotten everything working except when I test in Visual Studio I get...
View ArticlePerfect inventory code giving errors? [C#]
I can't understand why this code is giving me so many errors, it seems perfectly fine to me but yet i'm getting errors on lines : - 26 - 30 - 32 - 33 - 53 - 54 - 62 Can someone please help me figure...
View ArticleUnity3d + SmartFox dll + Windows 8 Store Build produces errors
I am trying to build a Unity program for Windows Store that uses SmartFox Server. I have followed all documentation, to the point that an admin at SmartFox says "I tried the same exact thing and it...
View ArticleNullReferenceException on Object Instantiation onto game world
Here's my code var playerMale : GameObject; var playerFemale : GameObject; var savedplayer : int = 0; function Awake () { savedplayer = PlayerPrefs.GetInt("selectedplayer"); playerMale =...
View ArticleThe animation state could not be played because it couldn't be found!
Hi, trying to make a custom FPS player with self-made animations but when I use this code attached to the First Person Controller and press shift, it gives me the error in the question. Here's the code...
View ArticleI Need Help With My Error Problem
When I try to play the game I made it says all compiler errors have to be fixed before you can enter play mode and I dont know about any errors. What am i suppose to do.
View ArticleWhat Android Emulator to run unity3D apk ?
Hello everyone, i broke my android device 2 days ago and i'll probable will not get it back before a week, so i must use an emulator to test my game, but the problem is that i tested all the emulators...
View ArticleMy game does not run when I switch to Android Platform
I have created a game with the p.c. platform. My game is running flawlessly, but when I switch my platform to Android it get lot of errors... 'GetComponent' is not a member of 'Object'. for (var...
View ArticleDX9 error issue
We are experiencing a lot of problems with our users since a several days, all of them with the message of DX9 error... Even installing the last one 4.3.1 do not solve the issue. Do you have any link...
View ArticleBCE0051: Operator '
pls..can anyone tell how to fix this error... PLSSSSSSS HELP... BCE0051: Operator '<' cannot be used with a left hand side of type 'Object' and a right hand side of type 'float'. if...
View ArticleError when trying to set variable with array
I'm trying to make a tower defense game. I've never used array's before, so i figured now would be a good time. I'm making a enemy, were the goal is to move from waypoint to waypoint. I'm using...
View ArticleWhy am I receiving "null" in console instead of the name?
function Update () { var troll = PlayerClass("john"); print (troll.name); } class PlayerClass { var name; function PlayerClass(n : String) { var name : String = n; } }
View ArticleHelp, i can't build my game..!
Hi, i have a problem i was about to build my game finally but then a problem appears to me saying "play is not a member of UnityEngine.Texture'. And also "isplaying is not a member of...
View ArticleWhy do these errors keep showing up with C#? Im a beginner with coding
using UnityEngine; using System.Collections; public class NewBehaviourScript : MonoBehaviour { public float movementspeed = 5.0f; public float MouseSensitivity = 5.0f; // Use this for initialization...
View ArticleCannot cast from source type to destination type ERROR!
#pragma strict var Effect : Transform; var TheDammage = 100; function Update () { var hit : RaycastHit; var ray : Ray = Camera.main.ScreenPointToRay(Vector3(Screen.width*0.5, Screen.height*0.5, 0)); if...
View ArticleHow do i attach this prefab to the script?
using UnityEngine; using System.Collections; public class NewBehaviourScript1 : MonoBehaviour { public GameObject grenade_prefab; // Use this for initialization void Start () { } // Update is called...
View ArticleWhile Loop Infinite... Rookie Mistake
You know, this is a rookie mistake. But, swallowing my pride... please help. The while loop I put in is looping infinitely. I originally wanted it to be... while (movement buttons are pressed){ allow...
View ArticleAI doesn't do damage
Hello, I was making a multiplayer fps and tried to add AI now, my AI doesn't do damage to the player(s) I only get this debug error: 'Sendmessage hp has no receiver!' this is the code from the error:...
View ArticleHow come this error pops up?
#pragma strict var projectile : Rigidbody; var speed = 20; function Update () { if ( Input.GetButton ("Fire1")) { clone = Instantiate(projectile, transform.position, transform.rotation); clone.velocity...
View ArticleUnity saying there's an error on a line that doesn't exist...
I have a script with 17 lines. Unity says there's an error on line 18 (I made sure it was the same script). It says something like 'Expecting ), got "' Edit: Sorry for not posting the script. It turns...
View Article