1
Support / Re: Animation Issue after upgrade to 2.0
« on: July 11, 2013, 05:30:43 pm »
Awesome thanks, I missed that
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.
playerSprite.anim = (tk2dSpriteAnimation)Resources.Load ("player2Anim", typeof(tk2dSpriteAnimation));
Assets/Scripts/playerNEW.cs(194,30): error CS0122: `tk2dAnimatedSprite.anim' is inaccessible due to its protection level
if(Input.GetButtonDown("Jump") && touchingPlatform)
{
jumping = true;
Jump();
}
void Jump()
{
rigidbody.velocity = new Vector3(0, 0, 0);
rigidbody.AddForce(new Vector3(0, jumpPower, 0), ForceMode.Force);
}