[answered] Bullet angle of motion reset

Bugs will be moved here once resolved.

Post » Thu Jun 07, 2012 6:08 am

Answered. Not a bug,by design.

R93 and R92
Sprite with Bullet behavior will have it's bullet angle of motion set to 0 if it's speed is set to 0.

Example Capx Download

Steps.
new project
add sprite
add bullet behavior to sprite
events
Start of layout---> set sprite bullet angle of motion to 90
every one second -->set sprite bullet speed to 0
"check sprite angle of motion" it's set to zero

Win 7 64bit.
gtx560ti
chrome 19
firefox 12onzephyr2012-06-07 16:15:23
B
86
S
14
G
9
Posts: 101
Reputation: 9,912

Post » Thu Jun 07, 2012 3:10 pm

This is by design. If the object is not moving, it has no angle of motion, so it just returns 0.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu Jun 07, 2012 4:11 pm

Makes sense, Thank you.
B
86
S
14
G
9
Posts: 101
Reputation: 9,912


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests