Can someone explain the Bullet Behavior? I have read this (https://www.scirra.com/manual/90/bullet) and much more, but I am confused as to why when you insert a Sprite that the Sprite has to face East. I get that bullets travel East, unless you set an image point and then rotate the sprite, but I really don't get why. It appears that whatever direction the Grab Handle is facing is the direction of the bullet, Why?
Any help understanding the concept would be greatly appreciated. Thank you
Bullets work off of the objects angle. It just so happens that the angle for 0 is east, or that way->.
So if you want the bullet to travel down you would set its angle to anything below 179, and above 0, up, above 180, etc.
Image points have very little to do with it. However the hotspot has quite a bit to do with it, as it is the objects origin, or the xy that the system will use.
I see that help tremendously. I was confused as to why the bullet was traveling in the facing direction of the gun, but it was because it was setup to spawn from the gun and therefore uses its angle. Wow, thanks.
Develop games in your browser. Powerful, performant & highly capable.
Well , bret , there's an option in the bullet behavior options ( DUH ! )
That let's you disable this behavior ( Not the bullet behavior , the behavior of taking the object angle as an angle of motion ) you can set it to no and then you can controls the angle of motion with the action
"Set Angle of Motion"
Works very well , I remember ol' days when C2 was a new born :P
Didn't have those fancy options :D
Oh well , cheers ...
OUCH, (DUH). So I saw/see that "Set Angle" but its not clear what it does, based on what you say I understand but it doesn't respond or (DUH) does apply to me :)
I created a Sprite with Bullet and Set Angle to No, when I hit Run it still shoots off to the right.