Quantcast
Channel: Latest Questions by eeveelution8
Browsing all 100 articles
Browse latest View live
↧

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

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
Browsing all 100 articles
Browse latest View live


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