How do I FIX the FPS drops.

Get help using Construct 2

Post » Sat Apr 25, 2015 5:35 pm

I try to make behaviour system for enemy units. Everything worked fine untill I added the following event;

Enemy -- has LOS to Player ---> Enemy set Alarm to true
System-- Else ---> Set Alarm to false

Enemy has the boolean instance variables "Alarm".
If the Player comes in LOS sector the "Alarm" is true and the Enemy fires.
The quantity of units is 60.
I do not understand why these two simple lines of a code drop the FPS to 30 percent?
I can't belive that it is because of the number of units.

What should be changed not to drop FPS?
Posts: 52
Reputation: 1,106

Post » Sat Apr 25, 2015 11:03 pm

What is the range and cone of view you're using for your LoS behaviours? Are you using the collision cell optimization option for the LoS behaviour?
Posts: 13
Reputation: 251

Post » Sun Apr 26, 2015 6:27 am

it is changing the variable to true every tick it has LOS ,not sure if trigger once while true would be the solution
Posts: 58
Reputation: 841

Return to How do I....?

Who is online

Users browsing this forum: resdesign, wandererabove and 6 guests