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 - famadori

Pages: [1]
1
Support / Sprite collection problem.
« on: June 06, 2014, 11:02:23 pm »
I am creating a game object and adding TK2dScriptCollection precionando the button to open the editor and then create font in the window that opens, however nothing happens, the button create / font does not work. You know what's the problem?

2
Support / Re: Prefab with TK2DCameraAnchor?
« on: May 31, 2014, 09:36:04 pm »
Perfect. Thanks.

3
Support / Re: Prefab with TK2DCameraAnchor?
« on: May 31, 2014, 09:06:41 pm »
I have to pre configure a prefab with a TK2CameraAnchor and add for instance? Or need to add the anchor after instantiating this way gameObject.transform.parent = cam.transform;

4
Support / Re: Prefab with TK2DCameraAnchor?
« on: May 31, 2014, 07:53:21 pm »
Able to resolve the problem added anchors the main camera and adding to this GameObject anchora scripted. I created this class to help me. This is the correct path?

Code: [Select]
public enum enumPosition
{
    LowerLeft,
    MiddleCenter
}

public static class Extensions
{
    /// <summary>
    /// Adiciona objeto na posição da tk2dCameraAnchor especificada.
    /// </summary>
    /// <param name="gameObject">GameObject que será posicionado</param>
    /// <param name="ePos">Posição onde ficará o gameobject</param>
    /// <param name="newLocalPosition">Nova posição de deslocamento do objeto</param>
    public static void AddCamera(this GameObject gameObject, enumPosition ePos, Vector2 newLocalPosition = new Vector2())
    {
        var cam = GameObject.Find("tk2dCamera").transform.FindChild(ePos.ToString());
        gameObject = GameObject.Instantiate(gameObject, cam.transform.position, cam.transform.rotation) as GameObject;

        gameObject.transform.parent = cam.transform;
        if (newLocalPosition != default(Vector2))
        {
            gameObject.transform.localPosition = newLocalPosition;
        }
    }
}

5
Support / Re: Prefab with TK2DCameraAnchor?
« on: May 31, 2014, 07:52:13 pm »
I'm adding to my prefab tk2dCameraAnchor the script and dragging the camera to camera property, however when I close the unity or throw an build prefab loses Anchor. This prefab is added to the screen by script so do not know if this will be the right way to do.


6
Support / Prefab with TK2DCameraAnchor?
« on: May 31, 2014, 02:47:23 am »
CameraAnchor'm adding to my prefab, however it does not apply. How do I do that?

7
Surrendered to HotWeen.

HOTween.To (this.volume.GetComponent <tk2dCameraAnchor> (), 2, new TweenParms () Prop ("AnchorOffsetPixels", new Vector2 (150, 50)).);

very simple.

8
I'm using ITween.

iTween.MoveTo (this.volume, new Vector3 (+ this.volume.transform.position.x 1f this.volume.transform.position.y), vl);

However, for this code to work need to inactivate the anchor of the camera this way.

this.volume.GetComponent <tk2dCameraAnchor> () enabled = false.;

This is the correct way or is there another more advisable?
Thank you.

9
Thanks, I'll try.

10
Unable to resolve. In UpdateTransform method tk2dCameraAnchor ofsset the class is changed only in unity when wp8 step towards this value does not change. This must be a bug or wp8 2dToolkit? Anyone have a suggestion how to do it?

11
Thanks for trying to help, however my problem does not seem related to your not. It's all working perfectly, just does not work when the animation step wp8.

12
Support / TK2dCameraAnchor animation offset in windows phone 8!!!
« on: May 25, 2014, 04:25:42 am »
I created an animation with animation with rec panel and changed the offset of x tk2dcameraanchor in unity worked perfectly, however when the application goes to the windows phone 8 does not work. Can someone help me?

Pages: [1]