Issues with object spawning after long period of playing.

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.
  • So I'm working on a project for a programming class where we have to make a functioning sidescroller. Enemies spawn frequently but after a while both enemies and bullets stop spawning. I can't figure out what the cause is, my only guess is the amount of objects on screen cause it to bug out but I tested this with a less intense version of the game and the same thing happened. The objects off screen shouldn't be despawning they are set to follow the frame so they don't disappear the bullets don't shoot far enough down to accidentally destroy them either. The enemies are meant to spawn on different timers and the bullets shoot upon the player pressing the spacebar if that helps any.

    I would like to know whats causing this and if there is a way to fix it so this doesn't happen again.

  • Hi TurntSNACO

    From my limited experience, it sounds like your application is reaching the maximum Active Objects per frame. I think the default is 300 per frame. You can change this in the frame properties I think (to a maximum of 10,000).

    The main thing though is to make sure any Actives are destroyed once they have served their purpose, such as being out of the frame. This will keep the amount of actives to a minimum.

    Steve

Participate now!

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