bullet speed set to 0 causes sprite to reset angle

Bugs will be moved here once resolved.

Post » Fri Feb 15, 2013 1:13 pm

Link to .capx file (required!):
https://dl.dropbox.com/u/143636437/bug%20report/please%20test%20-%20bug.capx

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
59
S
30
G
34
Posts: 1,194
Reputation: 23,767

Post » 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
59
S
30
G
34
Posts: 1,194
Reputation: 23,767

Post » 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
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » 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
59
S
30
G
34
Posts: 1,194
Reputation: 23,767

Post » Fri Feb 15, 2013 3:44 pm

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

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest