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

Pages: [1]
1
Support / Re: The type or namespace name `tk2dSprite' could not be found.
« on: November 11, 2013, 09:49:03 pm »
Nope, when importing TK2D I just went with the default location, didn't touch anything to do with installation directories. Very odd, there must have been some miscommunication between Unity, MonoDevelop and TK2D so when I ran the Setup for JS tool it re-established these missing references.

2
Support / Re: The type or namespace name `tk2dSprite' could not be found.
« on: November 11, 2013, 09:45:05 pm »
Just for shits and giggles I ran the "Setup for JS" tool, now all of a sudden I can reference tk2d stuff from MonoDevelop, the errors are gone now.

There isn't a single JS script in the entire project though - why did that fix the problem for my C# scripts?

3
Support / Re: The type or namespace name `tk2dSprite' could not be found.
« on: November 11, 2013, 09:40:27 pm »
The line that's throwing this error is literally just:

Code: [Select]
public class RiddleScript : MonoBehaviour {
    public tk2dSprite bigSphinx;
}

4
Support / Re: The type or namespace name `tk2dSprite' could not be found.
« on: November 11, 2013, 09:39:11 pm »
Nope, I'm using C#

5
Support / The type or namespace name `tk2dSprite' could not be found.
« on: November 11, 2013, 09:16:13 pm »
I've been using TK2D for over a year now, never had this problem before. I cannot script anything related to TK2D without getting:

Quote
The type or namespace name `tk2dAnimatedSprite' could not be found. Are you missing a using directive or an assembly reference?

When I created the project, I imported TK2D just like I have before. I've downloaded the latest version, re-imported TK2D, closed and opened the project numerous times, Rebuilt the Index, Checked Integrity - everything is supposed to work fine.

I can create Sprite Collections and Animations, I can create individual Sprites in the scene, but for some reason the second I write "public tk2dSprite mySprite;" I get errors and cannot reference TK2D at all.

Any ideas/solutions? The only problem I can think of is that this project is synced with GitHub and SVN enabled, but I cannot imagine why that would mess with TK2D scripting at all. Going to try creating a new project with TK2D and dragging all my assets in.

6
Support / Re: Polygon Collider - Problems with Character Controller
« on: July 14, 2012, 01:29:05 am »
Oh shucks, I can't believe forgetting one check mark caused all these problems. Marking the collider as convex fixed my problem, thank you very much!

7
I'm building a 2D platformer in Unity using TK2D for sprites. I attached a slightly modified version of Unity's platformer controller script to my player character sprite and left it as a regular box collider at first, everything worked fine. The collisions didn't look normal (since the collider wasn't lined up with the character's legs) so I changed the collider to a polygon and added several points to make the collisions look normal. When I tested the game again, whenever I try to move left or right, the controller no longer works. I can still jump with spacebar for some reason, but movement controls break.

Any ideas on what is causing this? Anyone know how I can use a polygon collider without breaking the character controller?

Pages: [1]