1
Support / Re: Question on tileMap Colliders
« on: August 15, 2013, 04:28:29 pm »
You mean you want me to send you a repo link of my project, or just steps I took to get it to where the issue occurs?
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.
using UnityEngine;
using System.Collections;
public class GameScript : MonoBehaviour {
public tk2dCamera Cam;
public float moveX;
// Use this for initialization
void Start () {
Debug.Log("HERET");
moveX = 0;
}
// Update is called once per frame
void Update () {
if(Input.GetKey(KeyCode.RightArrow) || Input.GetKey(KeyCode.D))
{
Debug.Log("HERE");
moveX += 20;
//Cam.viewportRegion = new Vector4(moveX, 0, 100, 100);
//Camera.current.transform.Translate(new Vector3(moveX, 0, 100));
}
}
}