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.


Topics - Kenzo

Pages: [1]
1
Support / Best Resolution & Camera Settings for a 2D Android Game
« on: July 09, 2014, 03:23:36 pm »
Hi,

I'm m making a 2D game in Unity with 2D toolkit's powerful tools.
I've also read documentation but didn't get a clear solution for my problem.

What resolution should i use to cover most of the android screens without problem?
(Can you please give exact pixels)
What should be the tk2d orthographic camera's settings ?

Thanks guys. You have good support

2
Support / Loadlevel after animation completed
« on: April 06, 2014, 09:59:37 am »
Hi just need to know can i load level after an animation finishes ?

Thanks guys ! u have great support !

3
Support / Play Animation of Instantiated Game Object
« on: March 15, 2014, 08:06:04 am »
Hi i am trying to play animation of an instantiated (clone) object in an another script. But cant get it work.

So i am basically spawning an enemy (enemy has its own Tk 2d sprite and 2k 2d sprite animator component)

Here is a sample code :
Code: [Select]
tk2dSpriteAnimator anim;

 void Start()
    {
        anim = GetComponent<tk2dSpriteAnimator>();

        SpawnMonster();
    }

    void SpawnMonster()
{
  ...
  ....
  GameObject enemy = (GameObject)Instantiate(objectsToSpawn[i], spawnLocations[i].position, Quaternion.identity);
//how can i play animation of an instantiated enemy object here ?

         if (!anim.IsPlaying("Move Enemy"))  //this wont work because it only looks for animation component of current gameobject(which has no animation) i should reach the instantiated game object's animation but how ??
                        anim.Play("Move Enemy");
}

4
Support / Cannot able to play animation
« on: July 23, 2013, 07:55:26 pm »
Hi all,
I've created a clip named Right, it gives NullReferenceException : Object reference not set to an instance of an object error

Here is the code :
Code: [Select]
using UnityEngine;
using System.Collections;

public class Player : MonoBehaviour {


tk2dAnimatedSprite anim;
 

// Use this for initialization
void Start () {

anim = GetComponent<tk2dAnimatedSprite> ();
}

// Update is called once per frame
void Update () {

if (!anim.IsPlaying ("Right"))
anim.Play("Right");

}
}

simply can't work why? 
Please help guys.
Best regards.



image for my case :

Pages: [1]