5 Forum Posts by "aCardboardbox"
Hello, I have a question regarding multidimensional arrays.
I noticed that when I used .push() to add an array into array, it doesn't hold as a nested array. The pushed array unravels, and all the objects that the array held are splayed in the parent array.
Is there a simple way to add an array to an array so that I can access specific elements in a two-dimensional for loop?
Here is an example of what I want to see in the code and what I get:
example2Array = new Array(stuffOne, stuffTwo, stuffThree)
example1Array.push(example2Array)
trace(example1Array)
//this is what I want
OUTPUT: [array Array]
//this is what I get
OUTPUT:[object Stuff][object Stuff][object Stuff]
I was wondering if there was a method that I'm not aware of to add an array to an array. I'd love some pointers!
At 1/30/14 12:49 PM, kkots wrote:At 1/30/14 12:22 PM, aCardboardbox wrote: Thanks, friend! That takes a load off my mind. I thought it might have been because of bad cleanup or something with the code. Cheers!If you're using hit tests, they may cause bugs depending on the browser.
If you're using very large bitmaps, Flash Player may run out of memory but most likely will just display a red rectangle instead of the intended bitmap.
But crashing - I have no idea. Maybe the computer you're testing on is too powerless.
Thanks for the reply. I am using hit tests. Is it a bad practice to use hit tests because of it's inconsistency with browsers?
I've had play test games where the game would freeze for about 10 seconds and then resume.
I'm not getting that many complaints about the game not running smoothly, so I'm just going to assume everything is hunky-dory.
At 1/30/14 01:11 AM, MSGhero wrote:At 1/30/14 12:57 AM, aCardboardbox wrote: I'm using Enterframe, MovieClips, and a couple .PNGs. Is it normal for some browsers to suck at running Flash games? Or are my testers just using outdated versions of Flash?Outdated flash versions is the most likely cause. The major browsers shouldn't have any issues.
Thanks, friend! That takes a load off my mind. I thought it might have been because of bad cleanup or something with the code. Cheers!
At 1/30/14 12:05 AM, MSGhero wrote:At 1/29/14 10:33 PM, aCardboardbox wrote: Does the fact that I'm using dated software have anything to do with it (Flash CS4)? Are there tips for making games run more smoothly across browsers?No, using cs4 doesn't affect your swf. One of the few things you could do that wouldn't work on every browser would be to use workers. Gonna assume you didn't use those. Otherwise, there's really nothing you can do about it, other than making sure your flash plugins are up to date in each browser. Describe some of the stuff you did in the game (enterframe or time-based, sprites and mcs or bitmaps/pngs, anything helpful).
I'm using Enterframe, MovieClips, and a couple .PNGs. Is it normal for some browsers to suck at running Flash games? Or are my testers just using outdated versions of Flash?
Hello, I just published my first game called Blasteroids and while I was testing it I discovered that the consistency of how buggy the game was varied depending on what browser was used to play the game. I couldn't find out what was making the game crash on some browsers so I decided to publish it and ask around for help.
Does the fact that I'm using dated software have anything to do with it (Flash CS4)? Are there tips for making games run more smoothly across browsers?

