x


Shoot him up with a ball

I try to make a game, where the player shoot an object with a ball.

The difficult thing is to let the object avoid the ball to the left or right.

I dont know how to do that. I hope you someone can help.

Thnx

more ▼

asked Oct 09 '10 at 02:26 PM

macmasterflash gravatar image

macmasterflash
13 2 2 4

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Assuming your object is 3D, you could make simple animations that allow your object to dodge to the left or right.

For a tutorial on creating animations on Unity, go here: http://unity3d.com/support/resources/tutorials/video-animation-view

Now, when your ball is fired, have your object play the dodge animation you have created via a script. If you don't know anything about scripting, might I recommend 3D Buzz's Unity3D Tutorial? http://www.3dbuzz.com/vbforum/sv_home.php

more ▼

answered Oct 09 '10 at 05:00 PM

Thom Denick gravatar image

Thom Denick
1.9k 13 20 38

Hi and thank you for your answer. Maybe this is a good solution. To let him go to the best direction, he must know from where the ball comes an how much space he had till the end of the screen. I must try this. Thnx

Oct 09 '10 at 11:28 PM macmasterflash
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x25
x12

asked: Oct 09 '10 at 02:26 PM

Seen: 974 times

Last Updated: Oct 09 '10 at 02:26 PM