Quantcast
Channel: Latest Questions on Unity Answers
Browsing all 171066 articles
Browse latest View live

Save/Load Scores for Individual Players

Hey, I am trying to save and load a group of scores that would be specific to each player. In the game level there is a spot in the code that saves the values to PlayerPrefs to be displayed on a...

View Article


When trying to save for each player there are 12 high scores, do I need to go...

I'm trying to save data for one user for my game, do I have to individually save all the variables or is their a way to save all of the variables that way when a new user wants to play, the originals...

View Article


Any beginner tutorials for Windows Store games?

Wondering if there are any beginner tutorials on making a game for the Windows store that includes using both touch and keyboard/mouse input and demonstrating with a very simple game. I appreciate any...

View Article

GL_OUT_OF_MEMORY error when using RenderTexture in Unity Android

So I got this error when using RenderTexture, to capture some parts of my game, and copy it to Texture2d. W/Adreno200-ES20(22364): : GL_OUT_OF_MEMORY Here is my code: public static Texture2D Capture...

View Article

AngryBots broken?

I downloaded the latest version of Unity and when I try to open the AngryBots demo Unity just crashes. Itried creating a new project and import it and the same thing happens, Any one else having this...

View Article


Object reference Problems

So i am trying to code a simple code that checks if i am clicking the left mouse ( just for practice since i am new ). I keep on getting Object reference not set to an instance of an object..... i am...

View Article

iTween Event CallBacks, with iTween Visual Editor?

Hello, I would like to be able to add iTween event using **visual editor**, and on that iTween Event set a parameter and target game object that says when this animation is completed **start** the...

View Article

Scene not rendering

Hey guys, so I was messing around with image effects, not really sure way. Anyway, after I added Sepia Tone, and then removed it, my scene view (well, actually, the game preview) no longer shows...

View Article


How can I make a function wait before it starts running again?

Hi! I need help with my codes. I'm trying to make a dialogue for my game and it's working fine. When I press the A button on the keyboard, the dialogue will continue on being displayed until the end of...

View Article


IndexOutOfRangeException: Array index is out of range.

i have a ploblem,the sentense m_bActive[idx] = true ; keep wrong help me #pragma strict PlayerPrefs.SetInt("playerScore3", 70); var m_bActive : boolean[]; var idx:int; var m_GuiStageBtn : GUIStyle; var...

View Article

Need help with a "roll" script (C#)

I'm trying to make a simple 3rd person RPG and want the character to be able to do a roll to dodge. Right now it just makes it impossible to walk in the opposite direction after hitting Shift-W. My...

View Article

Get all surrounding gameObjects

I have a 8 x 8 sets of cube as so: for (var x = 0; x < 8; x++){ for (var y = 0; y < 8; y++){ var cube = GameObject.CreatePrimitive(PrimitiveType.Cube); cube.transform.position = Vector3(x, y, 0);...

View Article

FPS Multiplayer, Problem with Multiple Cameras

I am making a FPS multiplayer game, and when a second player spawns my camera switches to theirs. How would I go about making it so no matter what my camera stays the camera I see through?

View Article


Where is Unity Network Demo?

I've looked through many answers on this site about networking, NetworkRigidBody, etc. I've searched the web and unity pages, but come up with nothing. Could someone please direct me to it?

View Article

Javascript transform spawn problem

Ok so i have been creating a fps zombie shooter in unity for about two weeks now, i am a little familiar with coding but not a whole lot. my friend was able to code a simple gun script and i have...

View Article


Figurine stand system problem

Hello! i'm having a weird problem with a script i made, i made a figurine system to watch collectible figurines or trophies in my videogame, in a figurine stand, and my script is used to change the...

View Article

2D Wall Jumping not working properly (Build Included)

When I wall jump, it is very jerky and it doesnt feel right. Also, on the second time I jump, it jumps down, not up. It is very weird and could you help me fix up this piece of code? It is very very...

View Article


Collisions in 2.5D

I'm trying to add 2.5D sections into my 3D game and am hitting a bit of a snag. Specifically in the way I handle collisions. I want characters to be able to walk through each other. Right now, I have...

View Article

Trying to loop audio in a pattern - after 10 seconds under condition

I am trying to write a function where if the character controller in question is moving, it will play a sound every 10 seconds. For some reason the code keeps on looping the audio even when loop is not...

View Article

Hitmarker appears on both targets

So I know what my problem is, but after hours of trying to fix it I can't think of a way to do it. So when I attack the enemy (or target), the GUI is drawn on the target saying the amount of damage....

View Article
Browsing all 171066 articles
Browse latest View live
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>