Problem with animation and void fixedupdate()
Look i'm trying to make a 2D game with unity 4.3, and i have a problem, don't need the code you just need to know my logic. I'm using fixed update to create a moving control with two buttons, right and...
View ArticleVirtual directional pad
Okay, i'm using now two GUITexture to move my 2D character to left and right and i want to use only one like this image. I want to know how to calculate the axis and when the player finger touchs the...
View ArticleProblem with Constraint Camera Rotation C#
using UnityEngine; using System.Collections; public class ConstraintRotation : MonoBehaviour { public enum ConstraintAxis{X = 0, Y, Z}; public ConstraintAxis axis; // Rotation around this axis is...
View ArticleProblem with GUITexture upon another
So i have a large touchpad GUITexture on half of screen, in the right side, with Z=0, and i have a button(Turn on and off a flashlight) in the same side with Z=1. When i touch the button, the touchpad...
View ArticleSomething is not right with my flashlight code.
using UnityEngine; using System.Collections; public class FlashLight : TouchLogic { static float energy = 1000f; //The energy amount of the flashlight private float drainSpeed = 2.0f; //The speed that...
View ArticleProblem with adding number of Potions
I have a script to when i pickup the gameobjet with this script, it add 1 potion to my player, but i don't know why, it's adding 2 potions no matter how i change the value, it add always 2. using...
View ArticleTrying to change a texture with picture from camera
On android i'm using WebCamTexture to take a photo(GetPixel), so i use this code, i want that the player can change the camo texture of my weapon with his camera, this is just a test, i know how i will...
View ArticleShadows problem with mobile.
I'm testing shadows on Moto X with GLES 3.0 adreno 320. This screen is from Unity but the same is on the phone. what is the problem that makes this black lines appears? I walk around and this lines...
View ArticleProblem to add a delete method to a saveload script C#
I have this SaveLoad code and i'm trying to make a delete funtion, tried to use SaveLoad.SavedGames.remove = game.current; but not worked, can someone help me? The script just create a file with player...
View ArticleProblem with duplicated score!
I'm using a script to add score, the script is simple it uses a OnTriggerEnter2D to detect player collider enter and add += 1 to the score, but some times if a pass faster on 4 coins for example it ads...
View ArticleSolution for this shadow problems?
I'm having a problem with shadow from a point light, bias don't resolving this time :\ ![alt text][1] ![alt text][2] [1]: http://imageshack.com/a/img850/3452/v9bl.jpg [2]:...
View ArticleMake car CenterOfMass change dynamically
Can some one give me directions to start a dynamically script to change the center of mass, like car simulation, in real life if you are ate like 20 km/h and max turn it will only skid because the...
View ArticleDifferences from MipmapFilter Box to Kaiser?
What is the difference from the mipmap filter mode box to kaiser?
View ArticleHeightMap Problem in my mesh
I dont know what is going on, my heightmap value strech in a custom mesh, but its fine with primitives from unity(Sorry bad english)![alt text][1] ![alt text][2] CUSTOM MESH and PRIMITIVE MESH!! as u...
View ArticleHow to approach a Large 3D model with UV and Materials?
So, shortly, i have a big 3d model and i'm thinking, should i split it into pieces/Materials, should i overlap texture, should i do something different? My game will have an artistic level of texture,...
View ArticleEmissive realtime light not working on Unity 2017.1?
I tested with a full static cube, he has a emissive material, the light bakes into static meshs with poor resolution, but with moving objects it's not working, i already set it to realtime in the...
View ArticleHow do i make a save persistent cross players with WebGL
Before you jump into the anwser, i just want to clarify that what i want, is a player progress to actually be loaded for another player, like if you are player another person save, on web GL/WebPlayer,...
View Article