Bullet angle of motion is same as sprite angle

Bugs will be moved here once resolved.

Post » Mon Mar 12, 2012 4:32 am

First I'd like to say that this is with the "set angle" property of the bullet behavior set to "No". It should allow a sprite's angle to be changed and not change the angle of motion.

The bug is the angle of motion of the bullet behavior is independent of the sprite's angle only when the sprite's angle is 0.
Tested in Firefox 10.0.2.

Capx:
http://dl.dropbox.com/u/5426011/fixed/bullet_angle_bug.capx

It should be fixed if this: ..\behaviors\bullet\runtime.js line 72
[code]          if (this.inst.angle !== this.lastKnownAngle)[/code]
is changed to this:
[code]          if (this.setAngle && this.inst.angle !== this.lastKnownAngle)[/code]

For completeness here is my system specs:
C2 r80.2 (32-bit)
Winxp sp3
Intel 915gm graphics
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Mon Mar 12, 2012 3:58 pm

Good catch and even included the fix. The perfect bug report :) Thanks, fixed in next build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sat Mar 17, 2012 3:14 am

Hmm, not the perfect bug report - the fix breaks the lasers in Space Blaster. I'm going to have to postpone a fix for this until a future build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest