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

Get help using Construct 2

Post » Thu Jun 26, 2014 3:18 pm

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!
B
22
S
6
G
2
Posts: 27
Reputation: 3,627

Post » Fri Jun 27, 2014 4:43 am

It's rendered off screen?
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, Phacanu, richcoz81, Txchaser and 34 guests