1
Support / Re: Sprite from texture resolution
« on: November 11, 2017, 03:25:02 pm »
Using SpriteCollection and with a correct setup on the camera its working fine.
Thanks
Thanks
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
You can use 1 tk2dUIToggleButton per each ListBox item and tk2dUIToggleGroup to allow you to select only one.
List<string> MinhaLista = new List<string>();
//PlayerName
//level 0
// FullScreen
// 100
// 100
MinhaLista.Add(playername);
MinhaLista.Add("1");
MinhaLista.Add("FullScreen");
MinhaLista.Add("100");
MinhaLista.Add("100");
~using UnityEngine;
using System.Collections;
public class FishMovement : MonoBehaviour {
public float speed = 0.5f;
void OnCollisionEnter(Collision collision)
{
//if (collision.gameObject.tag == "Eletric") {
Application.Quit ();
// }
}
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update ()
{
if (Input.GetKey(KeyCode.LeftArrow))
{
transform.position += Vector3.left * speed * Time.deltaTime;
}
if (Input.GetKey(KeyCode.RightArrow))
{
transform.position += Vector3.right * speed * Time.deltaTime;
}
if (Input.GetKey(KeyCode.UpArrow))
{
transform.position += Vector3.up * speed * Time.deltaTime;
}
if (Input.GetKey(KeyCode.DownArrow))
{
transform.position += Vector3.down * speed * Time.deltaTime;
}
}
}
You move the sprite the same way you move anything in Unity.
Something like this?
http://answers.unity3d.com/questions/173352/move-a-ball-using-keybored.html