Hi All I would like to make a wizard character but im stuck how to make the scripts in c# iv seen this one on youtube http://www.youtube.com/watch?v=aDht3p5Gr3M this is like what I would like can anyone point me the way so i can learn to do this? tutorials or scripts would be helpful thanks
Casting a spell works as any other fire weapons do. Instantiate a "fireball" near the hand of the wizard and script the actions that you want to see when the fireball hits something. For example, if you want to destroy something when the spell touches any object use: Code (csharp): function OnCollisionEnter(collision : Collision) { // instantiate some particle effect here: Instantiate(transform.position, transform.rotation, ...); // This next line will destroy the hited object: Destroy(collision.gameObject); // And now destroy the fireball: Destroy(gameObject); } There is no more magic than this ;-) PS: Maybe you where asking for something different like the "dissolve" effect that appears when an enemy is hited. I have no idea how to do that, but I think there is a special shader for this in another thread.
The dissolving is probably something like this: http://www.unifycommunity.com/wiki/index.php?title=Dissolve_With_Texture Look at any tutorial for help on instantiating objects. The rockets in the first person tutorial are basically the same as the spells in that video.