Disabling Behaviors

Discussion and feedback on Construct 2

Post » Sun Jun 26, 2016 1:42 am

Hi All,

I have a quick question just to confirm - if I add a behavior to a sprite and then disable the behavior, does that behavior still take up cpu?

The reason I ask is that I currently have lots of sprite particles being created when you hit an enemy, and they all have the bullet behavior. I'm also doing an "on collision" check to make sure when they hit the wall/floors they decrease speed until the 3rd or 4th time they are hit. On the last time it disables the bullet and collision of the sprite (which works perfectly). However, the CPU seems to increase as the layout carries on. This could be attributed to the amount of objects (I'm making sure its less than 1k objects on the layout by deleting them if it's over), but rarely are more than 20 on screen at once.
B
44
S
12
G
1
Posts: 545
Reputation: 4,271

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 1 guest