How do I reverse bullet in spawn action

Get help using Construct 2

Post » Thu Jan 14, 2016 3:30 pm

Hi
I want reverse moving bullet in spawn action. How do it ?
It moves to right but I want move to left without any angle
Image

File:
iranbm.com/sample1.capx
B
6
Posts: 13
Reputation: 278

Post » Thu Jan 14, 2016 3:39 pm

Make the speed negative. In your example -400.
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Thu Jan 14, 2016 4:44 pm

Asmodean wrote:Make the speed negative. In your example -400.

Thanks
Problem fixed in sample file

But I cant fix it in my main project
please see it
iranbm.com/saadat111.capx

is this a bug?
B
6
Posts: 13
Reputation: 278

Post » Thu Jan 14, 2016 6:03 pm

It seems that setting the speed to negative only works if the setting 'set angle' is disabled or that the object that spawns the bullet has itself an angle of zero. Don't know if this is a bug.

If you want that your bullet flies in the opposite direction that the object is facing you need to turn the object that the bullet spawns.

you could use in your second example: 'Sprite| Rotate 180 degrees (counter-)clockwise' when the condition triggers where you want to shoot the bullet in the opposite direction.
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Thu Jan 14, 2016 7:29 pm

Asmodean wrote:It seems that setting the speed to negative only works if the setting 'set angle' is disabled or that the object that spawns the bullet has itself an angle of zero. Don't know if this is a bug.

If you want that your bullet flies in the opposite direction that the object is facing you need to turn the object that the bullet spawns.

you could use in your second example: 'Sprite| Rotate 180 degrees (counter-)clockwise' when the condition triggers where you want to shoot the bullet in the opposite direction.


Thanks solved ;)
B
6
Posts: 13
Reputation: 278


Return to How do I....?

Who is online

Users browsing this forum: Held, mikehive, Ninjadoodle, NN81 and 10 guests