Quantcast
Channel: Latest Questions by blackshtormx
Browsing all 43 articles
Browse latest View live

Help with compiler and script errors

Hello! I have one question, I was making my game but suddenly when I imported a new script Unity says that I have mistakes... And then I delete this script I have imported but it at least writes that i...

View Article



my unity says that there is mistake

i have this script but it dont works: function update() { if (Input.GetKey("w")) { audio.Play(); } } and thanx for any help

View Article

Unity 3d GUI text problem PLEASE HELP :|

Hello guys its again me, so i am new to unity3d but i know a bit of javaScript i've again one more question about GUI textSo there is my script i want make shooting counter so yeah, there is script:...

View Article

WHY IT ISNT WORKING?!

Script is working fine, soldier is destroying its self if i am hitting a car to him, but it isn't working if i shoot him with bullets("Sphere"). (soldier is colliding bullets) here is script i am...

View Article

I have a game...

Please help! :| when I am going to support soldier and colliding to him, THE GUITEXT text IS NOT CHANGING!!! I am sure my code is right! ok thankx for any help :) HEre is script: var targetGuiText :...

View Article


question about turret on tank

Hello! i have question about my game. When i am driving my tank on mountain, and i am rotating my turret it is twisting in different directions, how can i fix it? here is script i am using: `#pragma...

View Article

hey is there way to do nothing?

I have ammo counter, and i have question in script "can i do nothing?" here is script: var fireInterval = 0.5; var projectile : Rigidbody; var speed = 10; var ammo = 10; var targetGuitext : GUIText;...

View Article

Rotate on Z axis

Hello guys! I've problem with Z axis rotating... I've turret that is rotating by pressing z,x buttons, but turret is rotating like: ![alt text][1] [1]: /storage/temp/22259-capture.jpg so, i decide to...

View Article


Problem with changing color of particles

When I start changing color on first particle system, I don't know why, but color is changing on another particle too! PLEASE HELP! here are some images: ![alt text][1] [1]:...

View Article


Transforming object on place of another object problem.

I have a problem with transforming one object on place of another. All I get with my script is that enemy is just disappearing. Here is code I am using: var hitPoints : float = 25; var...

View Article

Turning lights on or off with only 1 button

I have script that have to turn lights on and off only with 1 button, but i am recieving lots of mistakes in console. here is script I am using now: var Light1 : Light; var Light2 : Light; var TopLight...

View Article

how to make tank never come off the terrain

HI i got a question, how can my tank never come off the terrain. When i am driving on about 50km/h and I am starting steering my tank is comming off the terrain. I have assigned rigidbody, and Center...

View Article

guitext is not changing color

i attached this script to guitext but... ok when I am pressing the guitext it isn't changing the color, no erors in console, i really dont know. function Start(){ guiText.material.color = Color.white;...

View Article


show-hide some GUItexts in one script

I have script and it is working with 1 Guitext but when I am changing code to use some guitexts,(using []) nothing works any ideas? here is the script: var levelObject : GUIText[]; var...

View Article

water graphic problem

hey i made water by myself, and when i am close to it it looks like this: ![alt text][1] yes but i need something like this: ![alt text][2] [1]: /storage/temp/32678-waterwtf..png [2]:...

View Article


question about score counter

hi guys i have script that shows score. here it is: function show(){ HowMuchToWait = 0.1; addScore(); } function addScore(){ for(effectScore=0; effectScore

View Article

object goes through walls(no, dats nnot what r u thinkig about)

so, i have cylinder that moves up and down, it has rigidbody and capsule collider elements attached. so the problem is that if i'm touching green wall, ball goes through it. but i'm sure its not...

View Article


animation play backwards (speed -1)

so speed = 1.0f works fine when i want to walk forwards, but when i walk backwards speed = -1.0f is not working, and i don't know why, here is my code: void Update() { if (Input.GetKey("s")) { anim =...

View Article

Unity networking, access online scenes variable in network manager

How can I access online scenes variable in network manager? I have main menu scene and there player chooses which map he wants, then he hosts server and I need to spawn him on chosen map, ![alt...

View Article

prevent animation loop.

So I have problem with script, I just need to play zoom in animation when right mouse button is pressed, but it starts looping, here is my code: using UnityEngine; using System.Collections; public...

View Article
Browsing all 43 articles
Browse latest View live




Latest Images