Invert movement of bullet

Get help using Construct 2

Post » Sun Dec 02, 2012 8:53 pm

Hello,

I'm new using Construct and done basic tutorials platforms and the man who shoots.

I'm making a small platform game and I have a character who shoots, but always shoots to the right and I want that when the character look left then the shot go in that direction.

I have already done so when you look left, the shot appears from another point from the right, what I need is that the shot go left.

Thanks in advance.
B
1
Posts: 1
Reputation: 227

Post » Sun Dec 02, 2012 9:08 pm

you must give your character a varible for direction.
if right pressed set direction variable to right.
if left pressed set direction variabla to left.

on fire button pressed and direction is right then
spawn bullet set bullet direction angle of motion 0 degrees

on fire button pressed and direction is left then
spawn bullet set bullet direction angle of motion 180 degrees
B
5
Posts: 11
Reputation: 822


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests