Positioning a bullet to fire from a cannon with Box2d

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

  • So I'm making a cannon that behaves pretty much exactly like the one in the "bullets" frame of the "testbed.mfa" file. The one thing I'm having trouble figuring out is how to position the bullet at the nose of the cannon so that it looks like it's being fired from the cannon. Line 32 in the Bullets frame of the testbed.mfa file is where the bullet gets positioned, but when I put it into my own game, it doesn't do anything.

    Can someone help me understand what's going on in the example file with regard to positioning the bullet in the manner I described?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!