# bullet speed set to 0 causes sprite to reset angle

Bugs will be moved here once resolved.

### » Fri Feb 15, 2013 1:13 pm

Steps to reproduce:
1. add bullet to sprite and set bullet speed to 0
2. set angle of sprite (eg 45)
3. set bullet speed (eg 10)

Observed result:

sprite resets angle back to 0

Expected result:

sprite continues in set direction

Browsers affected:
Chrome: yes/
Firefox: not installed
Internet Explorer: yes

Operating system & service pack:

vista sp2

Construct 2 version:

119
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,912

### » Fri Feb 15, 2013 1:16 pm

This has only been tested on an old laptop and I realise that slowing a bullet down to 0 might not be normal...

If the bullet is slowed down to almost 0 (0.000001) then I do not have this jump back to angle 0.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,912

### » Fri Feb 15, 2013 1:48 pm

The bullet's angle of motion is based on it's x and y velocity. If a bullet isn't moving then what is it's angle of motion? Think about it.

And you have the bullet property 'set angle' = 'yes' - "Set the objects angle to the angle of motion".
So when the bullet isn't moving, it's angle of motion = 0 and it's angle gets set to 0.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,870

### » Fri Feb 15, 2013 3:15 pm

Thankyou.

Put like that it makes perfect sense.

August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,912

### » Fri Feb 15, 2013 3:44 pm

Moved to closed bugs.
New to Construct ? Where to start

Please attach a capx to any help request or bug report !
Moderator
B
312
S
129
G
101
Posts: 7,432
Reputation: 75,388