The NaN is an easy fix
Nice and simple application, but if you want to fix the NaN problem (and make it more idiot-proof) just use a simple function when taking the number from the textboxes, in one of two ways:
var exp = getVal(exp_txt.text); //exp_txt is the instance NAME of the textbox
//continue to grab each variable using the getVal() function, as defined below...
str = parseInt(str, 10);
if (isNaN(str)) return 0;
else return str;
//if instead of giving the textboxes NAMES you gave them VARIABLES, then you can modify before it is evaluated, like this:
exp = getVal(exp); //this will, (if exp is the variable in the input box), correct the value if the user types in something that isnt numerical, or leaves it blank. You will still need to copy and paste the function above.
Hope it helps! =D
That is incredible
I can write Actionscript as well, and pretty well too. But for you to produce effects like this is beyond belief. Sure, the game is awesome, but the bugs are even cooler!! I have never even heard of a memory leak in flash. The automatic quality flickering, the high jumping, its all so cool! I am in no way being sarcastic, because I truly believe this to be awesome. Obviously a LOT of work went into this, and I feel bad since your score does not represent your work. Still, if you get the bugs fixed, I would like to know what exactly caused the problem. You can even post the technicalities in your comment of the submission. Either way, I really want to see how it all turns out.
I liked the quirks that made it different from all the other breakout games. I got to level 10 and then hit a bug or something, because the top left red bock and the block two to the right of it wouldn't die. I was shooting them and hitting them with the ball but it just went right through. Other than that, it was a real nice game. The high score didnt work either. Perhaps you can use shared objects to save your game so you can replay levels you beat already.
I absolutely love logic and puzzle games, and this is definitely awesome. Although I developed a simple method on working backwards using a screenshot and paint, it STILL proved challenging. The special blocks were very nifty, and the levels were well thought out. A couple of things though. First, you should have some sort of saving method, either password or maybe SharedObjects. I got up to level 21 and figured it was over. This was my second thing I had to say. I noticed that level 21 changes each time you lose, and I was wondering if perhaps some of these randomly generated levels are impossible to win. Also in these levels, I noticed that sometimes I can touch the bottom of the screen and not die. Again, I dont know if this was intended or not, but Im just letting you know. So are all these maps on level 21 randomly generated? And if not, are they all beatable? Because if you say yes for both, then you better show me whatever algorithm you used to generate that, because that is just awesome. Great job.
21 is beatable and all of them. 21 is randomly generated.
No way, this is too cool
E-freaking-gads dude, this is amazing. I wasted so much time here. I script AS myself and I must say you did a superb job. The physics are amazing too. But boy, that scripting engine was probably the most amazing thing I have ever seen in flash. You, mia amiko, are a genius.
Some things I had a suggestion for. One, how about a restore to default for the script things. I was messing around with the baseball one and forget what the default is. Maybe you could throw in a button for "New Script" just so that you don't have to overwrite it each time.
I did see one glitch though, and unfortunately I saw it after I bought every weapon and all but the scripting engine. I don't exactly know what it was, but I was set to missle and I just started firing away. I mean, I must have clicked fifty times. Well, it crawled down to 0.8 fps then I minimized it. Soon enough, I saw that the player was unresponding and flash gave me that message box that allows me to stop all script. I didn't know it auto saved, so I clicked No, then it came up again. I stopped the script, closed, and restarted. What was weird was, my weapon was set to "fist" (yes, a lowercase f) which didnt work at all. My buddy just sat in the middle doing nothing, but then when I tried to throw a grenade at him, the line that is supposed to project the path sorta jolted down then straight up then flash locked up again. I cleared my file and then went along, but I'm not sure if this is even worth fixing. Maybe you can just make checks when loading the SOL to see if everything is in order.
Another semi-glitch is that some things (I think when created via script) wont disappear when you put your mouse over them. For example, the throwable ball or the suspend bowling balls.
One more thing I have to say is that the whole "learning" system is amazing. How he catches a grenade the first time I throw one, but rejects and runs away from the others. Even on the wall explosion script, when I guided him to it, he got blown off, then he wouldn't hold my hand, and ran away from my mouse. But what was even cooler was that he ran away, but would never touch the walls. I have no clue if you planned all this, but the dynamicness of it is amazing. I still can't get over how awesome it is. I think thats about all I have to say. Just up this amazing work. I expect great things from you in the future. Absolutely beautiful.
Thanks for the extended review. I definitely need to find that "fist" glitch and fix it.
well, not very original, but still a nice twist for those defend your castle games. one glitch i found was that you didnt have to buy the phasers to use them, and sometimes the wrong button lights up or something, but it didnt matter. and some of the upgrades like the phaser power core and torpedo turrents didnt work. hard was HARD, but with the phaser glitch i was able to take em easily. i think hard should start out with at least some money. and maybe you can move the ships or something, because when you build your first ship and it ends up at the edge, its annoying. good game overall though, kept me hooked.
well on its way
wow, this was very addicting. i have a few suggestions though. first, make a few changes with your dynamic text boxes. set the selectable to false (in the properties window click the button that has Ab with a dark b), and embed the font (in the properties window click the Character... button and depending on which version of flash you are using, bullet off or select the appropriate things). another is, sometimes when you let go of the guy on the world map, he makes the map keep moving to the right, and that was a pain. and make the textboxes either faster, or make it so that you can manually go to the next message. other than that, i say you did an awesome job.
absolutely incredible.... BUT!!!!!
but, i must say, shared objects are very easy, yet not reliable. it was super simple to edit anyvalue on my saved character that i wanted. the customization system was awesome too. i like the music setting, it cut down on size, but i was too lazy to set the music anyway, but oh well. well, for all of you who want to see my "character," use this:
just load taht and take a look at the cash and the rank... nope, i didnt cheat.... heh
the game was quite fun, and nicely coded. i suggest having options to change both the number of colors and the number of slots, it may be tough to code (im a programmer too!) but i think the turnout would be nice.
yes, but that would be too hard for me.
i am a pro actionscripter, and you need to work on your syntax. lots of those commands you use have been deprecated meaning you are doing it the long way. plus theres that bug with the dragging. just put the mouse code in onEnterFrame instead of load, if you werent sure
newgrounds.com — Your #1 online entertainment & artist community! All your base are belong to us.