Recent posts by mikebolt on Kongregate

Flag Post

Topic: Game Programming / [HaXe AS3][SOLVED] How to Iterate Backwards Through an Array?

Completely guessing here:
for (i in a.length … 0) { }

or a while loop

 
Flag Post

Topic: Game Programming / [AS3(FD)]Importing Bitmap question [Solved]

Put the embed tags inside a class! Can’t just have them lying around in a package.

 
Flag Post

Topic: Game Programming / GiTD [#25] Entries and Discussion

I’m coming back from about a year of Kongregate inactivity to participate. Best of luck.

 
Flag Post

Topic: Game Programming / Is Flash 11 hardware 3d (WMODE=DIRECT) supported yet?

I’m sure they will when flash player 11 is officially released. Right now they can’t expect users to download an alpha version of the flash player to play certain games, especially when the alpha version breaks certain games. Meanwhile developers can work on their cool 3d games and get them fully ready. Personally I can’t wait.

 
Flag Post

Topic: Game Programming / AS3 Collision for 1 object

If you’re only testing one against a bunch of objects then you won’t get exponential growth as more of those objects appear. If you need to speed it up though, you can filter out objects that couldn’t possibly be touching. Use some cheap operation, like a boundingbox or the square distance. Then when you have a list of only the objects that could be touching use hitTestObject or whatever other expensive operation to do an accurate hittest. Keep in mind though, with only 30 objects on the screen at once this will be a complete waste of time.

 
Flag Post

Topic: Game Programming / AS3 MySQL interface

There’s NetConnection in AS3. I’ve got no clue how it works, but I know it uses the AMF format for sending data through packets.

 
Flag Post

Topic: Game Programming / GiTD [#20] Voting (Also 72 hours!)

Originally posted by Narinik:

1. iBringHam
2. mikebolt

I couldnt even play the ones on megaswf

Thanks. Turn off ad block and refresh, I was having that problem too.

 
Flag Post

Topic: Game Programming / GiTD [#20] Voting (Also 72 hours!)

1. iBringHam – Annoying Airborne Apparatuses
2. Rivaledsouls – They Fell From The Sky

 
Flag Post

Topic: Game Programming / GiTD [#20] Entries and Discussion (72 hour competition!) (started!)

How would it make sense to have a transparent background color? What would the compiler use for behind it? Make it #000000. It is kind of confusing though because 0×0 == 0×00 == 0×000 etc.

 
Flag Post

Topic: Game Programming / GiTD [#20] Entries and Discussion (72 hour competition!) (started!)

Background color is just RGB, not ARGB. That could throw it off.

 
Flag Post

Topic: Game Programming / GiTD [#20] Entries and Discussion (72 hour competition!) (started!)

Originally posted by ST3ALTH15:
Originally posted by mikebolt:

macromedia.asc.parser.MetaDataEvaluator$KeyValuePair cannot be cast to macromedia.asc.parser.MetaDataEvaluator$KeylessValue

Sounds like you messed something up in the SWF tag (if you have one). It’s saying it wants a value with a name and you just gave it a value. If you dont have a SWF tag then check the project properties to make sure everything is intact. That being said, I’ve never had an error like this. Usually the precompiler catches the syntaxy stuff.

My game? Can you play it?

I did. Sry lol you made your post when I was still typing that. I like the graphics.

 
Flag Post

Topic: Game Programming / GiTD [#20] Entries and Discussion (72 hour competition!) (started!)

macromedia.asc.parser.MetaDataEvaluator$KeyValuePair cannot be cast to macromedia.asc.parser.MetaDataEvaluator$KeylessValue

Sounds like you messed something up in the SWF tag (if you have one). It’s saying it wants a value with a name and you just gave it a value. If you dont have a SWF tag then check the project properties to make sure everything is intact. That being said, I’ve never had an error like this. Usually the precompiler catches the syntaxy stuff.

 
Flag Post

Topic: Game Programming / GiTD [#20] Entries and Discussion (72 hour competition!) (started!)

Originally posted by orandze:

Ugh. I finished last night, but I’m getting a parsing error. I’ve spent the last 8 hours looking for a typo. I don’t think I’m going to be able to enter :(

Would anyone happen to know anything more specific about this?

Files changed: 0 Files affected: 1
Error: macromedia.asc.parser.MetaDataEvaluator$KeyValuePair cannot be cast to macromedia.asc.parser.MetaDataEvaluator$KeylessValue
Build halted with errors (fcsh).

All google will tell me is I made a typing error somewhere. Is there anything more specific I should be looking for?

A line number. Is that with the flash compiler?

 
Flag Post

Topic: Game Programming / GiTD [#20] Entries and Discussion (72 hour competition!) (started!)

http://www.kongregate.com/games/mikebolt/ascendication

40 minutes to spare ;)

 
Flag Post

Topic: Game Programming / GiTD [#20] Entries and Discussion (72 hour competition!) (started!)

Originally posted by luthimir:

Yeah, exactly. I’m CST, it’s 2AM here, and I’m planning on pulling a near-all-nighter to finish up what I want to get done here.

Same. My game is functional but OMG IT NEEDS PARTICLES. Good luck to both of us. 5 hours.

EDIT : http://www.kongregate.com/games/mikebolt/ascendication

 
Flag Post

Topic: Game Programming / GiTD [#20] Entries and Discussion (72 hour competition!) (started!)

So I have to rewrite my game now since Flixel can’t handle what I need it to do. Good games so far, I’ve got quite the challenge.

EDIT : http://www.kongregate.com/games/mikebolt/ascendication

 
Flag Post

Topic: Game Programming / GiTD [#20] Entries and Discussion (72 hour competition!) (started!)

This got my interest. Since it’s summer and my project is on pause I’ll participate likely.

EDIT: http://www.kongregate.com/games/mikebolt/ascendication

 
Flag Post

Topic: Game Programming / Creating game with AS2

1 : You’re allowed to use the Kongregate intro animations for whatever. You might get in trouble if you used them to advertise something, but that’s not your case. linky: http://www.kongregate.com/logos (at the bottom)

2 : Put your game frame on the second frame. The first should be a frame with a button on it or whatever you want. In this frame’s actions put stop(); . On the “click” action of your button put gotoAndStop(2);

3 : Letting PLAYERS stream mp3s through your game is a mess and probably too advanced for you right now. If you want to put some music in your game there are a number of ways to do it. The way I remember in flash is to file>import your sound, go through a bunch of menus, then drag the sound from the library onto the game keyframe.

Also, I would only upload your game to Kongregate if it is a REALLY good maze game. You likely won’t get positive feedback from anyone.

 
Flag Post

Topic: Collaborations / Need game testers

I got stuck first on wave 5. I got through it (after shop-grinding) and made it to the boss. I have no clue how to beat it though, short of buying every single upgrade. It basically just pumped bullets into my base and I was dead in 5 seconds. Which reminds me, it’s not always obvious why you died. Sometimes I wasn’t sure if it was my base or my tank. And lastly, I think it’s weird to have the multiple weapons be at 90 degrees from each other. It make it difficult to aim and actually take advantage of the second weapon that way.

Nonetheless, good game and I’m glad you’re trying to polish it.

 
Flag Post

Topic: Game Programming / Idea for storing defaults to allow data to be persistent

If you have two classes, then you can easily exchange data between them if they are properties of each other.


ClassA.otherClass = ClassB;
...
ClassB.otherClass = ClassA;

It’s not easy to do though

EDIT: I’ve been using globals and I think it’s perfectly fine as long as you don’t have performance issues or rely on globals for every variable.

 
Flag Post

Topic: Game Programming / Idea for storing defaults to allow data to be persistent

http://xkcd.com/859/

If the code isn’t called every frame then do whatever is most convenient or understandable for you as a programmer. If you have to access or change these variables a lot every frame, then either localize the variables (keep them equal at the beginning and end of a level) or avoid static properties by getting references to the classes that need this information. I’m not sure which is the best, because global variables tend to be variables that only need to be accessed once per level anyway (in my case).

 
Flag Post

Topic: Game Programming / Game Logos

http://www.flashgamelicense.com/blog/2010/09/choosing-a-title-and-icon-for-your-game/

I liked your icon, but it didn’t seem fully related to the game.

 
Flag Post

Topic: Game Programming / [SOLVED] FlashDevelop "Build Failed" Help, Please

If the problem was with your code then your compiler would likely give you specific errors. The problem is probably either with your compiler or with FlashDevelop. Try updating your compiler (flex SDK) or reinstalling FlashDevelop.

 
Flag Post

Topic: Game Programming / Android Development...

I believe the Kongregate arcade app accepts .swf files and not .air files. You can develop these games just like other flash games, only with mobile things in mind like screen size, technical limitations and varying input methods. You shouldn’t need to upgrade flash to do this. The .air solution is mostly for people who want to put games on the android market, as compiled packages.

 
Flag Post

Topic: Game Programming / Forum Project

Username: Mikebolt
Contact: Default

Field: Programmer and Musician
Preferred Language: AS3
Other Languages: Javascript, Java, Spanish
Software Used: FlashDevelop, Gimp, Renoise, FL Studio, Audacity.