When I run my game, I get this error:
Instance of tk2dAnimatedSpriteEditor couldn't be created. The script class needs to derive from ScriptableObject and be placed in the Assets/Editor folder.
Anyone know how to fix it? Heres my script, too:
#pragma strict
var Ryuuji : tk2dAnimatedSprite;
function Start () {
}
function Update () {
if(Input.GetButton("Vertical")){
Ryuuji.Play("WalkForward");
}
}
Also, when I hit the up arrow key, It shows the first frame of his "WalkForward" animation but it doesn't play the full animation unless I let go of the arrow key. Any way I can make it so the opposite thing happens? (As in when I hit the up arrow key his animation plays and when I let go of it his animation stops). Many thanks.
Ok, I got that part fixed, but now I'm getting this error when I add the StopAndResetFrame component:
Assets/TK2DROOT/tk2d_demo/TestAnimationPlay.js(12,16): BCE0019: 'StopAndResetFrame' is not a member of 'tk2dAnimatedSprite'.