Page 1 of 1

How do I shoot on diverent sides

PostPosted: Mon Oct 27, 2014 5:55 pm
by DieDattelprofis
Hello everybody,
i try to make a 2d shooter and added that the player is shooting on the left mouse button. If i look to the right and klick he shoot right but my problem is that if i look to the left and klick the shoot goes on the right too. How can i do that if i look to the left the shoot goes on the left? Thanks a lot

Re: How do I shoot on diverent sides

PostPosted: Mon Oct 27, 2014 5:59 pm
by chrisinfinger
Give the left shooting bullets a negative speed in their properties. If the bullet object has a front and back you may want to flip the sprite as well.

example: -100

Re: How do I shoot on diverent sides

PostPosted: Mon Oct 27, 2014 8:00 pm
by kirbysuperstar
when i turn left, my right side bullet spawner is destroyed and system, create left bullet spawner is created. hope that helps.
when i turn right. left bullet spawner is destroyed

Re: How do I shoot on diverent sides

PostPosted: Mon Oct 27, 2014 8:06 pm
by chrisinfinger
You could just use spawn object bulletL, bulletR image point 1 or image point 2 and put 1 on right and 2 on left?

That is the nice thing about Construct2, there are a dozen ways to fry an egg.