Arrays in flash and efficiency

So, I’ve run into a problem with my code design for Bunny Bomb. Right now, I created a class which maintains the game grid, which keeps track of where things are on the “game board”. Unfortunately, right now the grid is stored using arrays, and flash slows down drastically when I cycle through them. It works, mind you, it’s just extremely slow, since I have 12 objects right now that are moving. I’ll have to go back through my code and make it more efficient, and hopefully this will solve the problem. Or, if I can figure out a way to quickly cycle through the grid instead of using large arrays to store information. 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: