_ With Bullet Behavior there's an offset to upward/downward angle movements (90Âº / -90Âº).
Attach a Capx
_ https://www.dropbox.com/s/fluanpo50qwek ... .capx?dl=0
Description of Capx
_Simple Sprite with bullet behavior over a background.
Steps to Reproduce Bug
_Press Up and you should see the sprite moving upward with varied offset to the right. But should go stright up.
Happens with 90Âº and -90Âº (also with 270Âº). But works fine with any horizontal degree like 180Âº , 360Âº and 0Âº.
_Angles like 90Âº, -90Âº and 270Âº should move a sprite in stright vertical lines without offsets. (With bullet behavior movements)
Operating System and Service Pack
_Windows 7 x64 SP1 (all updated along with any drivers) _
Construct 2 Version ID
_r178_ (happened in this version too)
You have to set the bullet speed before setting the angle of motion. If you set the angle of motion when the bullet speed is 0 it has no effect (angle stays at 0) .
Wow! I always set first the angle and then the speed. Never played with direct angles like now so i probably never saw this kind of offset behavior before. I get carried away with a recent bugfix about pixel rounding giving bad offsets by 1 pixel and.. it was my stupidity all along..
Thanks ramones ! I tested it and worked fine now. I wonder why i didn't tried this simple change myself grrr.
By the way, if you set "angle(sprite1.x,sprite1.y,Sprite2.x,Sprite2.y)" as the angle and then set the speed it seems to work fine that way. I better correct those errors anyway before they explode on me.
Thanks again! This "bug" is solved.
Develop games in your browser. Powerful, performant & highly capable.
Closing, link is 404 and thread replies imply there is not a bug.