Tag Info

Hot answers tagged

3

You may want to create a button for the script. void OnGUI() { if (GUI.Button(new Rect(10, 10, 150, 100), "Go to Level1")) Application.LoadLevel ("Level1"); } For more information about the GUI scripting, check this out: http://docs.unity3d.com/Manual/gui-Basics.html


2

Have you thought about using bezier curves? Check out this link that explains them. http://blog.demofox.org/2014/03/04/bezier-curves/ You'll have to come up with the intermediary control point(s) but it should be pretty simple to do. Hermite interpolation might be more what you are after, but that is mathematically equivelant, just in a different form. ...


1

I don't think it is a good idea to mix logic and art; or more precisely, base your logic on your art. In simpler terms, don't do what you're doing. Separate logic from art. The idea behind this is that the person who draws the sprites should be able to do any kind of drawings and change them at will, without having to worry that artistic changes will have ...



Only top voted, non community-wiki answers of a minimum length are eligible