How do I Make my player "shoot" to the other side

Get help using Construct 2

Post » Fri Nov 07, 2014 4:03 am

Hi everybody! , first of all sorry for my bad english and for this "noob" question. But i have a problem doing my first game.

My problem is...

When my player is looking to the right and I touch a key of the keyboard ( in this case the "S" ) my player does the animation of firing a arm , and fires a bullet that goes straight forward ( to the right of the screen). But when im looking to the left and i press the "S", the bullet keeps going to the right and not to the left.

¿How do i do the bullet go to the direction that my character is looking? :ugeek:

Thanks for the help!
B
3
Posts: 2
Reputation: 179

Post » Fri Nov 07, 2014 4:50 am

set the bullet speed to negative, or change its angle of motion, assuming you arre using the bullet behavior
Image
B
58
S
13
G
6
Posts: 271
Reputation: 12,128

Post » Fri Nov 07, 2014 8:46 am

Here try this demo. This should teach you how to shoot left and right
You do not have the required permissions to view the files attached to this post.
B
252
S
39
G
15
Posts: 1,965
Reputation: 40,765

Post » Sat Nov 08, 2014 4:02 am

I cannot open the file , my version is the 184 and the demo is 187 T_T

EDIT: I finally did it thanks for all!!! :D

Heres how i did it:
Image
B
3
Posts: 2
Reputation: 179

Post » Sat Nov 08, 2014 10:38 am

Frederich you can download 187 anytime you like and it's free
Scirra.com
B
252
S
39
G
15
Posts: 1,965
Reputation: 40,765

Post » Mon Nov 17, 2014 10:11 pm

Someone here know how to set the angle of the gun to where I'm aiming? because when I shoot to higher places, the weapon animation aim straight foward. So it looks really weird aiming to your front and the bullet going up.
Any tips about how to do this tricky animation?
B
56
S
21
G
3
Posts: 602
Reputation: 6,612

Post » Tue Nov 18, 2014 3:23 pm

You can set bullets angle to the way you want
button click = fire bullet at angle 45 or what ever you like
B
252
S
39
G
15
Posts: 1,965
Reputation: 40,765


Return to How do I....?

Who is online

Users browsing this forum: Instrex and 20 guests