00:00
00:00
Newgrounds Background Image Theme

LOCKdev just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Lag and Numerous MCs

456 Views | 6 Replies
New Topic Respond to this Topic

Lag and Numerous MCs 2015-08-15 04:22:56


How do you guys do it? How do you make it not lag when there are over 20 MCs on screen?

Response to Lag and Numerous MCs 2015-08-15 05:02:35


Uhh that depends, what are the MCs doing? AS2 or AS3? Are they animated, or are they still images?


Slint approves of me! | "This is Newgrounds.com, not Disney.com" - WadeFulp

"Sit look rub panda" - Alan Davies

BBS Signature

Response to Lag and Numerous MCs 2015-08-15 05:42:57


At 8/15/15 05:02 AM, Gimmick wrote: Uhh that depends, what are the MCs doing? AS2 or AS3? Are they animated, or are they still images?

They're animated but no tweens. They're enemies that chase around the player's character.

Response to Lag and Numerous MCs 2015-08-15 18:15:48


At 8/15/15 05:42 AM, joedman593 wrote:
At 8/15/15 05:02 AM, Gimmick wrote: Uhh that depends, what are the MCs doing? AS2 or AS3? Are they animated, or are they still images?
They're animated but no tweens. They're enemies that chase around the player's character.

It's definitely possible to have that many MC's on screen without lag. Like Gimmick asked are you using AS2 or AS3? It is most likely something with your code base that is causing the lag. Also with your MC's make sure you are not using any kind of filter effects (drop shadow, glow, etc.).

Response to Lag and Numerous MCs 2015-08-16 03:05:51


At 8/15/15 06:15 PM, Hero101 wrote:
At 8/15/15 05:42 AM, joedman593 wrote:
At 8/15/15 05:02 AM, Gimmick wrote: Uhh that depends, what are the MCs doing? AS2 or AS3? Are they animated, or are they still images?
They're animated but no tweens. They're enemies that chase around the player's character.
It's definitely possible to have that many MC's on screen without lag. Like Gimmick asked are you using AS2 or AS3? It is most likely something with your code base that is causing the lag. Also with your MC's make sure you are not using any kind of filter effects (drop shadow, glow, etc.).

The code's in AS2, there are no filter effects so the code itself is making it lag. I'll look onto this and recode right away.

Response to Lag and Numerous MCs 2015-08-16 03:54:17


At 8/16/15 03:05 AM, joedman593 wrote: The code's in AS2, there are no filter effects so the code itself is making it lag. I'll look onto this and recode right away.

You could look into using Adobe Scout with your game. It's free. It will analyze your game and can pin point where/what in your game is causing spikes of lag.

Response to Lag and Numerous MCs 2015-08-16 05:26:20


At 8/16/15 03:54 AM, Hero101 wrote:
You could look into using Adobe Scout with your game. It's free. It will analyze your game and can pin point where/what in your game is causing spikes of lag.

Thank you. I'll check it out right away.