Mobile joystick controls ui image transform
I have a mobile joystick and a crosshair that follows my mouse. Well I decided I wanted to move onto mobile controls. I can't manage to get code in that will move the joystick, and the transform of my...
View ArticleGetButton will only play animation when held down
How do I play an animation completely with Input.GetButton ? It'll only play the complete animation if the button is held down. if (Input.GetButton ("Attack1")&& grounded==true &&...
View ArticleRigidbody2d addforce isn't moving character
public void Fire(){ IsShot = true; BasePower += MeterPower; Instantiate (Player, CannonEnd.transform.position, CannonEnd.transform.rotation); Player.GetComponent().AddForce (Vector2.right * BasePower);...
View ArticleDragRigidBody Dynamic Sound Door
I have it playing a sound no problem. What I want to know is where I should start using the default drag script at adding in dynamic sound. Like if it hits the o rotation in the y axis, it'll play a...
View ArticleSeparate mesh texture lighting
![alt text][1] [1]: /storage/temp/63078-capture.png I don't know how to fix this without breaking rigging or current uv. I know this isn't exactly a unity problem, but I figured someone here has needed...
View ArticleInput.GetAxis wont work with UI controls
// Normal Movements Variables public float Speed; void FixedUpdate() { // Move senteces GetComponent().velocity = new Vector2(Mathf.Lerp(0, Input.GetAxis("Horizontal")* Speed, 0.8f), Mathf.Lerp(0,...
View ArticleOnCollisionEnter stopped working
public void OnCollisionEnter(Collision col){ if (col.gameObject.CompareTag("Player")) { Destroy (this.gameObject); Debug.Log ("Exp Earned"); } } I'm getting incredibly frustrated about this. I've typed...
View ArticleToString ("f0") is rounding my float
Say my number is at 1.6, well my tostring text on screen is showing 2. I don't want it to do that, I only want it to show 1, then when it hits 2 or 2.1 , the text will show 2. To explain a little more,...
View ArticleAre there project files for a game like....
Darksiders II God of War III Devil May Cry 4 Bayonetta Ninja Gaiden II I wanna start a game like this, however I don't want to waste time writing it from scratch if I am able to download/purchase a...
View ArticleUNET error when retrieving matches
using UnityEngine; using UnityEngine.UI; using UnityEngine.Networking; public class CustomLobby : MonoBehaviour { public NetworkManager manager; public Text roomName; public Dropdown lobby; bool...
View Article