Backwards Bullet

Get help using Construct 2

Post » Wed Nov 28, 2012 9:53 am

I'm wondering if it's possible to get a Bullet to move backwards.

I'm making a very basic AI system. I'm using Bullet to home in on the player. However, once the Bullet object reaches the sprite SensorShoot which is invisible(or will be when done) the sprite has it's Bullet speed set to -80.

--------
ShooterEnemy is Overlapping SensorShoot
-> ShooterEnemy.setBulletSpeed to -80

Else(refer to overlap)
-> ShooterEnemy setBulletSpeed to 80
---------------

Now. What I'm wondering is that is this even possible. Will setting a -value for bullet speed have the bullet move backwards.
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Wed Nov 28, 2012 10:00 am

Yes, giving your bullet a negative speed will move it in the opposite direction.

If you have a simple question like this you could just make a simple test rather than having to wait on someone to provide an answer!

Hope that helps!
B
24
S
5
G
2
Posts: 104
Reputation: 3,136

Post » Wed Nov 28, 2012 3:59 pm

TY, did try but I didn't get it to work orginally. THough I kept looking. I found that I need to turn off the automated behaviour for the bullet to face the direction of movement and set the angular motion maunally.

however. thanks. you were right :)
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834


Return to How do I....?

Who is online

Users browsing this forum: flemmig, Matthew de, semaso, Skebab, Virpoja and 20 guests