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?
B
20
S
4
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?
B
5
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
B
11
S
1
Posts: 57
Reputation: 664


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests