I want to make a spider enemy but i don´t know how to script it. I want it to fire some toxic balls.
Can anyone plzz help me
Well… does your spider move? how does it target the enemy, does it shoot even when it can’t see the enemy? Is your concept 2d or 3d?
All actual movement is really based of of how you move your characters around. Have you developed anything to move characters around? If not, then you need to start there.
Start by searching the forums and Google for methods to get your game done. So if it is a 2d game, then look for 2d controls. Front view, or top view.
Most people here wont help you unless you give it the old college try. ![]()
I havent done anything to the spider exept make it, so it does not do anything. This is a 3d game.
anyone who knows how this is done?
You have to rig it first and then animate it. Then move onto scripting.
ok done but how is the scripting that i need???
Take a look at the tutorials, most of them cover this type of stuff. Basically you need to track some keyboard or mouse input and play the animation. Here is an example
if((Input.GetKeyDown(“space”)
animation.play(“walk_animation”)
if the space bar is pressed, trigger the animation. Your best bet is to go through a tutorial like lerpz as there is alot more to it.
Sorry but i want to have it a enemy, so it will play automatically
there are some ai scripts you can look at, the lerpz tutorial covers basic artificial intelligence. Spend some time and go through the tutorial
where are the lerpiz tutorial?
Under the support menu, look at the resources, there are many projects.