Hello Guest

Show Posts

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.


Messages - Mmarzex

Pages: [1]
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?

2
Support / Re: Question on tileMap Colliders
« on: August 15, 2013, 04:21:03 pm »
I checked them and they are fine. It is literally with any tile after a certain point it stops working, I don't understand why that is. I did a map with just one line of a colliding square tile and it works fine up until it gets to the second chunk of the tile layer and then it doesn't matter what tile, the player will always fall through. I can't see why it should be doing that if the collider is setup.

3
Support / Question on tileMap Colliders
« on: August 14, 2013, 04:06:11 pm »
So I'm setting up colliders on a tilemap where I imported a tmx file for it and I am noticing that for some reason once I get near the end of the dimension of the map if I try and collide with a tile that I have setup for it the player just falls through, that being said though I have the same tile placed at the beginning of the map it works just fine but not at the end. Is this a known issue?

4
Support / Re: How to move a tk2dcamera with C# script
« on: August 12, 2013, 10:50:28 pm »
I have the script attached to an empty game object to move the camera, but it doesn't even execute the start function, which it should. I have a debug log set to fire when start is run but it doesn't. I don't understand why that is happening, it's never been an issue for me in a unity project before.

5
Support / Re: How to move a tk2dcamera with C# script
« on: August 12, 2013, 08:34:33 pm »
Okay thanks. Also I can't seem to get my script to execute when attached to an empty tk2d game object. Is there something special I have to do to make it execute?

6
Support / How to move a tk2dcamera with C# script
« on: August 12, 2013, 06:43:54 pm »
I'm wondering how I would move the tk2dcamera with input, I was trying this code below but it doesn't seem to work.

Code: [Select]
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));
}
}
}

I'm not sure what to do to make it to work. Anyone got ideas?

Pages: [1]