Explain Bullet Behavior

0 favourites
  • 5 posts
From the Asset Store
This pack contains 10 types of bullet effects, with different shapes and colors.
  • 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

    Brett

  • 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.

    Brett

  • 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 ...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

    Thanks

    Brett

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)