How do I - know what's optimal in a condition

  • In my game I'm creating a waterfall using particle effects but I don't want it to run if it's not on-screen.

    What's a better use of system resources in your opinion:

    1. Comparing the player's x and y so that as they approach the area that should have the waterfall it then gets Triggered Once; then another Compare condition which destroys the waterfall once the player gets a certain distance away.

    2. Creating an invisible object that on collision is destroyed and starts the waterfall particles, and a second invisible object outside of the area that on collision destroys the waterfall and re-creates the initial invisible trigger.

    3. Some other method.

    The reason I'm not comfortable with the first way is that I want as few things running every tick as possible. Thoughts, opinions, feedback all appreciated!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's rendered off screen?

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