Quantcast
Channel: Questions in topic: "bce0043"
Browsing latest articles
Browse All 62 View Live

Formatting problems in Script

I have part of a script that has a syntax problem: function Update () { if (!inFreefall && Input.GetButton("Fire1")) { if (transform.forward = Vector3.forward){ Physics.gravity = Vector3(0, 0,...

View Article



Unexpected token: (. after creating class

Hi, I created a class, it looks fine but I got this message - "Assets/gScripts/gEnv/grass_classes/grass01.js(6,13): BCE0043: Unexpected token: (." class: class Grass01 { var grass: GameObject; function...

View Article

Constant Running on x axis

Hi all, I am new to Unity and I am trying to create a game (side scroller) where a character is constantly running on the x axis. The only controls I need is a jump function so the character can jump...

View Article

Trying to Destroy Object when Wave starts

I am trying to destroy an object at the start of a specific wave. I currently have an on screen gui that keeps track of each wave and a spawn controller that tells the gui what wave it is with the var...

View Article

Why is there an unexpected token error?

I am working on creating a respawn script in Javascript and I am getting three "BCE0043 Unexpected token: .." errors when I try to run the program. They are on lines 7-9, all three of the variables in...

View Article


Javascript Expecting Errors ';' & '='

i have these 7 errors showing in my console Car.js(323,10): BCE0044: expecting (, found 'CheckHandbrake'. Car.js(323,26): UCE0001: ';' expected. Insert a semicolon at the end. Car.js(325,9): BCE0043:...

View Article

Unexpected token: private. Error. Can anyone help?

#pragma strict function Start ( ) private var doorIsopen : boolean = false; private var doorTimer : float = 0.0; private var currentDoor : GameObject; var doorOpenTime : float = 3.0; var doorOpenSound...

View Article

Unity3D error BCE0043: Unexpected token: ..

Hey I am new to unity, and I am working on a script from EteeskiTutorials watching episode FPS1.8 And I have got this error. BCE0043: Unexpected token: .. And here is my Script var cameraObject :...

View Article


unexpected Token error

i have no idea how to fix this... my script is: var range: float = 5; // define the detection distance private var hit: RaycastHit; function Update(){ if (Input.GetKeyDown("e")){ var ray =...

View Article


Error: BCE0043

eu estava fazendo um jogo simples, e estava trabalhando com um codigo simples para interface,mais deu esse erro: Assets/Projeto WV_/SCRIPST DO JOGO/interface.js(2,4): BCE0043: Unexpected token: .. este...

View Article

Please help, syntax error woe

Please help>... Assets/2D Mario Assets/Scripts/playerControls.js(46,1): BCE0044: expecting }, found ''. Assets/2D Mario Assets/Scripts/playerControls.js(33,9): BCE0043: Unexpected token: }. My code...

View Article

BCE0043 + BCE0044 Error! Please help!

I've got this error code saying "Unexpected Token/Character" BCE0043 & BCE0044 on lines 6, 7, and 8. i haven't got a clue how too fix it! please help me! // contains browser and platform properties...

View Article

BCE0043 Unexpected Token: Please Help!

I keep getting the BCE0043 Unexpected Token warning again, and again, and i'm not at all sure how too fix it (lines 6, 7, and 8) and also a BCE0044 on line 8... please help me! // contains browser and...

View Article


Light Switching Unexpected Token Error

Hey guys I keep coming across this unexpected token error and it's doing my head in. A little help would be much appreciated. I have two lampposts with pointlights each. tagged "Light1" and "Light2"...

View Article

scripting colliders errors

hey guys newbie dev. here, I was testing a script that plays a sound when the player character collides with the door: function Start () { private var doorIsOpen : boolean = false; private var...

View Article


Unexpected Token: if

Hi, im new to unity and scripting so maybe the answer is simple... But im getting an error: Unexpected token: if Please someone help me with this error... i tried everything... { void :...

View Article

Error BCE0043 HELP!?

Assets/Scripts/JavaScripts/PlayerMovementScript.js(16,2): BCE0043: Unexpected token: movement. function Update(){ movement = Vector2(rigidbody.velocity.x, rigidbody.velocity.z); if ( movement.magnitude...

View Article


How can solve these errors in my java script

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

View Article

[JavaScript Error] BCE0043: Unexpected token:

I'm a noob.. This is the errors i got 1) Assets/Txt.js(2,1): BCE0043: Unexpected token: [. 2)Assets/Txt.js(5,1): BCE0043: Unexpected token: ]. 3)Assets/Txt.js(9,2): BCE0043: Unexpected token: [....

View Article

Where Is The Error

Assets/enemy1.js(51,2): UCE0001: ';' expected. Insert a semicolon at the end. Assets/enemy1.js(51,2): UCE0001: ';' expected. Insert a semicolon at the end. Assets/enemy1.js(51,1): BCE0043: Unexpected...

View Article

BCE0044: expecting ), found 'false'. AND BCE0043: unexpected token ). AND...

#pragma strict var TheDammage : int = 50; var Distance : float; var MaxDistance : float = 1.5; var TheMace : Transform; function Update () { if (Input.GetButtonDown("Fire1")) { //Attack animation...

View Article


Instantiating Dots

#pragma strict var dotcyan : GameObject; var dotred : GameObject; var dotgreen : GameObject; var dotyellow : GameObject; var dotorange : GameObject; function awake () { var Mathf.Clamp01 : float; if...

View Article


Converting My JS code into UnityScript

So I recently learnt JavaScript at a beginner level but was able to make some basic things like a fruit machine, dice game and a simple dodging game. But I am trying to figure out the main difference...

View Article

Assets/Mouse.js(13,15): BCE0043: Unexpected token: idle.

I get this error message when using animator.Play. which is very annoying as I thought that I was using the correct state name here. but obviously not. Can anyone help? Also has anyone used this...

View Article

I need help with an error

So I put a semicolon where it says to put it but for some reason the error stays even after I do clear errors so I know its not just a user error Picture of errors in the console :...

View Article


Some1 PLEASE HELP I SPENT HOURS trying 2 fix but nothing. My trigger /...

Hi guys please help I tried everything I know spent hours no luck. I have Gameobject/image and want to play a animation on collision on it but nothing is working I tried tons of combos and options. I...

View Article

error BCE0043

i'm working on a code ... i'm kind of new so just tell me what to fix and where : #pragma strict var Thedamage : int = 50; var Distance : float; function update (); { if (Input.GetButtonDown("fire1"))...

View Article

what shall i do with this Assets/BallControl.js(9,25): BCE0043: Unexpected...

Assets/BallControl.js(9,25): BCE0043: Unexpected token: >.

View Article

BCE0043, BCE0044 and UCE0001 errors after upgrade from 4.3 to 5.3

Noob request. I just upgraded an old game from Unity 4.3 to 5.3, and managed to fix most of the problems, but am stuck on three errors. - (73,82): BCE0043: Unexpected token: ). - (73,83): BCE0044:...

View Article



BCE0043 error and I don't know why!

functionOnTriggerEnter(Other:Collider); { if (Other.GameObject.tag == "Ball") { var respawn : GameObject = GameObject.FindWithTag("Respawn"); other.gameObject.transform.position =...

View Article
Browsing latest articles
Browse All 62 View Live




Latest Images