360 Degree Shooting with perfect collision = slowdown

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!

Clickteam.
  • I found an old example of 360 degree shooting on this forum and I've been using it to make a twin-stick shooter. It's been working great until I tried to increase the amount of bullets on screen at a time and ended up with drastic slowdown most likely caused by fast loops or some such thing. I don't know how else to get 360 degree fastloop shooting with precise hit detection and NOT get slowdown.

    Here's the modified example I've been using to demonstrate what I mean.

    Any ideas?

    Please login to see this link.

    Please login to see this picture.
    Please login to see this link. and Please login to see this link.

  • Or don't use ForEach loops at all. They're great, and much faster than comparing a spread id value against a loop index (which you will see a lot in old examples), but they're quite often used to do things that could have been achieved just using the automatic scoping / instance pairing system. But, yeah, be careful of copying extremely old examples (especially mine!), as there's often a better way of doing things now, either using new features added to CF2.5, or just better techniques (some of my very old examples - if it has pink comments, it's probably one of mine - should definitely NOT be copied!).

    This would be another alternative:
    Please login to see this attachment.

Participate now!

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