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

Pages: [1]
1
Support / Re: tk2dAnimatedSprite is not a valid type
« on: August 26, 2013, 08:30:49 pm »
I used the "Setup for JS" on version 2.1 and it works like a charm.  Thanks for the quick response and automating the js integration process!

-CL

2
Support / tk2dAnimatedSprite is not a valid type
« on: August 24, 2013, 11:25:51 pm »
I keep getting the error message (The name 'tk2dSpriteAnimator' does not denote a valid type ('not found')) when trying to access the animation methods from a Javascript file.

I found the solution that was posted here:

http://forum.unity3d.com/threads/93287-2D-Toolkit-2D-in-Unity-made-simple-RELEASED/page16

but could not get this solution to work (file structure is different? Getting different "not found" errors).

I am instantiating the class at the top of my file:

Code: [Select]
// Link to the animated sprite
private var anim : tk2dSpriteAnimator;

// This script must be attached to the sprite to work.
anim = GetComponent(tk2dSpriteAnimator);

and attempting to access the "Play" method, but the reported error is preventing the code from compiling.

Any help would be greatly appreciated.

-CL


Pages: [1]