x


2D game how to make my player shoot

Hello, I got a 2D game and I got problems to make my player shoot.

My character will be standing still and just rotate there you point with your mouse and then shoot to the mouse position.

Need shooting script.

more ▼

asked May 08 '11 at 09:30 AM

Franky 1 gravatar image

Franky 1
3 2 3 3

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

1 answer: sort voted first

This is not the kind of question to ask here. No one will write an entire script for you. This site is for asking specific questions about specific problems.

However, I will point you in the right direction:

Check out the evac city tutorial (top down shooter) for the exact behaviour you want HERE

Also see THIS ANSWER for another way to achieve this.

To make the bullet appear you will need to use the INSTANTIATE function. The second example in the link has a projectile example.

more ▼

answered May 08 '11 at 10:01 AM

GesterX gravatar image

GesterX
2.1k 13 16 37

(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:

x1036
x329
x274

asked: May 08 '11 at 09:30 AM

Seen: 2335 times

Last Updated: May 08 '11 at 09:30 AM