Code optimization help - Laser sweep

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 need some help optimizing a weapon effect for my breakout game, PhySix BREAK. So far I have managed to get everything working smoothly except for this one effect. It is a laser sweep that comes out from the player and hits enemies in front of the player. Damage dealt is determined by how long the laser stays in contact with the object. The laser should not be able to pierce the enemy or obstacles. Attached is an example

    The problem I am experiencing is it sometimes lags on android and ALWAYS lags on iPhones. Even the X. I really like the laser sweep upgrade. If I can't fix it I will have to scrap it. I am hoping someone can find a more optimized way to make it do the same or behave similarly to the current effect. As it stands, it relies heavily on "on object overlap" which I believe may be part of the problem. Any help would be appreciated

  • I see Fine Detection for effects and unneeded actives are on. this creates performance issues on mobile.

    Codewise - I haven't looked at it. I'm not good with lazers just yet

  • Checked my game code and unfortunately I need those on for other things to work properly. It could be laser itself with fine detection causing issues. If I turn off the effects still have same problem... :(

    I guess I need to wait for someone with laser making experience. Been scratching my head for a year on this one lol

    DRINK COFFEE! Do stupid things faster and with more energy!

Participate now!

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