Quantcast
Channel: Latest Questions by eeveelution8
Browsing latest articles
Browse All 100 View Live

Automatic fire in weapons

Im currently away from home and cant test this, but im asking anyway in case i have to ask anyway later.(on mobile at school.) i've been wondering about how to do an automatic weapon, and i'm asking...

View Article



Access a GameObject through it's tag, using a string.

In a weapon pickup script i have, The script i have should find a gun, based upon it's tag. In order to reuse this script instead of having 9 different ones, I added a string variable called gunname....

View Article

AI script troubles

I created an AI script, but it is having trouble. The enemy I'm putting the script on is supposed to be able to be spawned into the map multiple times, so i have to use a FindGameObjectsWithTag...

View Article

how do i access the components in 3D texts

I'm doing a tycoony type thing, And want to make 3D texts hover over buttons to show what the button buys. However, I don't know how to reference a 3D text, because I couldn't find it in the Learn...

View Article

Use of an AI script, and having it NOT go through walls using a character...

This questions arises from a different question regarding an AI script and is a continuation of the topic. While functional, has the enemy its used on go through walls. This is problematic on several...

View Article


Light Flare transparency trouble

So I am made this light flare, And it should look like this against a black background, ![alt text][1] ![alt text][2] [1]: /storage/temp/26665-help1.png [2]: /storage/temp/26666-help2.png But looks...

View Article

weapon isn't removing ammo when firing, but the script behaves normally...

the script I have for a pistol should remove the amount of ammo equal to the firecost, the script being, var Attack1 : GameObject; var Attack2 : GameObject; var sound1 : AudioClip; var sound2 :...

View Article

a 'phantom' error.

in this script i have, var opensavingthrow : int = 1; var hacksavingthrow : int = 1; var amiaHACKdoor : boolean = false; var playerholder : GameObject; var player : player_script; function...

View Article


an object seemingly cannot access a value in other.

A drill in the game is supposed to only fire if the players fuel value is equal or greater than the cost to run it. It's strange because i've done this before, but it doesn't work for this one. anyone...

View Article


Question on playerprefs

i have been working with different functions and values in coding, as i'm still learning. And im considering the prospects of using the specific functions with playerprefs like setint and getint. I...

View Article

Gap in requirements in GUI based game

I have a game that is GUI based, as the questions name implies, and the problem I have is that in a dialogue window, a text can be clicked to execute an event, and once clicked, the event has two...

View Article

project a ray in a straight line

I am working on raycasts for the first time, and have looked at the various kinds of ways a raycast can be done in the manual. I imagine raycasts are hard to understand for people new to it, because I...

View Article

Turn based games turn manager is spazzing out

I have a game with several units on the field, some computer controlled, some player controlled. when the unit's AP reaches 0, a boolean called 'isitmyturn' is turned off. and the script should make...

View Article


Enemy units behave normally, until they rotate, then their AI seems to break

I have a turn based strategy game, and the enemy have (very basic)AI. The little units seem to work and behave normally, but once they rotate, their AI seems to blow a fuse and they speed up, go...

View Article

Forced FPS?

While working in unity I was looking into the update functions, and I was wondering if it was possible to force a game to run at a predefined framerate. Can this be done? (setting a game to run at 40...

View Article


Rigidbodies getting stuck in non moving objects

This has not been a problem before, but in every project I have this happens. I know how rigidbodies work, but when they fall on another object, they fall a few units into the object, as if the other...

View Article

Timestamp and missing assets problem, very confused

after uploading an asset to the asset store, I close unity down and went to play TF2. a few hours later, I open the editor back up, and EVERYTHING is gone. not a single thing remained. I checked the...

View Article


Weapon store using playerprefs does not retain stored information.

I'musing playerprefs to store and int value under the name of 'wep1', and have it initially set to 0. when purchasing the gun, the int value should become 1. The point of the shop is to allow the user...

View Article

How do Audio reverb zones work, how are they set up?

I looked at it's documentation, and I don't have a very good grasp on how these work. I didn't see a lot about this in answers, so I'm wondering if anyone could explain how an audio reverb zone works,...

View Article

Opening the disk drive ingame.

I didn't think this was a question that existed so forgive mefor notchecking, but does unity have a command(Java) that can open the users CD drive ingame? My reason for asking is because I want to make...

View Article

Events called every Nth day

Im working on a game to have events occur every set number of days. Is there a function/script component that allows for functions to be called using an if statement, for when a variabl is a multiple...

View Article


2.5D enemy-player tracking script does not work.

Because I don't know how to use the vector.dot thing, I made a roundabout method. There is a secondary part of an enemy that watches the player, and will change the direction of it's parent depending...

View Article


Moving Platform Moves instantly.

This is the specific part of the movement in the script, function movenow(){ yield WaitForSeconds(DelayTime); transform.position = Vector3.Lerp(position1.transform.position,...

View Article

Practical solutions for lag reduction?

I have a problem with a game system I have so far, there's no problems with any code, the enemies are made of many many little bits you can blow off with guns(The head alone has 35 parts.) The issue...

View Article

Shop system using Enum throws up errors.

This is a simplified part of the script where it doesn't work, enum Shoptype {R_Rock,R_Iron,R_Silver,R_Gold,R_Gems,R_Uranium,R_Voidium,R_Zarkotium,R_Omnium,ShipFuel,ShipHull,ShipMissiles}; var...

View Article


Making a less complicated save system.

because it never really was an issue previously, I would save character data using 8 or so different PlayerPrefs values. But I want to attempt to make an RPG, and the amount of data needed to save...

View Article

What precisely does 'PlayerPrefs.Save' do?

The documentation page isn't exactly helpful explaining what it does. If I have several pref values, say what ID item the player has in their inventory slots, I could just do;...

View Article

Obnoxious Lines in gridbased world design

The basis for the levels I'm making in an RPG use many square textures to create the environment. But there is a problem with rendering in the game that keeps manifesting as lines between the blocks...

View Article

Enforcing Higher levels of detail in textures

The project I'm working on keeps having as visual problem where textures with alpha channels have an ugly texturing effect the further they get. Is it possible to enforce higher levels of detail in...

View Article



Looking for a solution to multiplayer

I've been prototyping a game for almost half a year now and it stands up in single player just fine. It is a classic themed shooter where the player runs through levels shooting up AI enemies in a...

View Article
Browsing latest articles
Browse All 100 View Live




Latest Images