0 Favourites

Disabling Behaviors

  • 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.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
[BEHAVIOR] Chipmunk Physics
673 82,504
nelostic's avatar
nelostic
Unread hot topic
0 Favourites
[Behavior] LiteTween
672 169,880
manujorgo's avatar
manujorgo
Unread hot topic
564 105,211
rexrainbow's avatar
rexrainbow