iTween error

Hello,
I am trying to use iTween in a new blank project. I created the Plugins folder and I have run the iTween package.

Unfortunately after installation I receive the following error in Unity 2.6 Indie version:

“Assets/iTweenPath/iTweenPath.cs(10,42): error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement”

Has anyone else experienced the same problem?

Thanks and happy Christmas!:smile:

When you say you “ran the package” are you talking about my iTween Visual Path Editor? Do you actually have iTween in you project as well?

Yes, I had, but I have solved buying some of the examples and I was able to start working with your great tool.
Thanks
Stefano:razz:

Another question. I have an enemie patrolling the entrance of a building. I want him to move on a path in front of this entrance. It is easy to create a path to do so.
My question.
At the moment the enemie already has an AI script to react when the player enters in his aggro radius so that he immediately walks toward him.
So what I need is to interrupt his movetopath and let the other AI script to let him walk toward the player. But if the player leaves the aggro radius I would like the enemie returns on his path as before. Do I have just to use pause and resume commands? Is there a way not to see the enemie move immediately on the path with a single translation from the actual position? Perhaps it is better to resume the enemie on the path when he is outside the view of the camera?
Thanks and sorry for my poor english.
Stefano

For your issue I would strongly recommend using PutOnPath() and not MoveTo(). That way you can easily keep track of the last point the character was on the path.

Good luck.

I am seeing the same error. I am in 1.7 iphone. I created a Plugins folder and placed itween in there. I then imported iTweenPath into my project and I get this error.

Assets/iTweenPath/iTweenPath.cs(29,42): error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement

-Tim

I believe this is because you can’t use generics with iPhone 1.7 have you tried changing your .Net version? You may need to snag Unity 3 if you aren’t successful with changing your .Net version.

thanks so much!