neurofuzzy, flash game development, rich internet applications, free source code - *alt.neurotica.fuzzy*

neurofuzzy, flash game development, rich internet applications, free source code - *alt.neurotica.fuzzy*

11/26/2004

Flash Game Framework, Sprites and Collision Detection

Filed under: Flash — geoff @ 12:38 am

thumb_sprite42 This is a little ditty I’ve been working on. It’s a 2d sprite-based game system with collision detection. It’s built with custom components, so you can drag and drop these guys onto the stage. I hope to eventually make it so they can be added dynamically, and that there will be more sprite types, like powerups, different enemies, better AI, etc.

Use the arrow keys to move the little blue guy around. Space key fires. You may need to click on the flash for focus.

Get the Source Code (18k zip file) ยป

I’m looking for others in the Flash community who would like to build upon this system. I think it is a good foundation for a lot of different kinds of 2d shoot-em up, capture the flag, or other kinds of simple strategy games.

Update 11/29/04: Added boundaries to the playfield so sprites do not go off stage.

11 Comments »

  1. Hey, this is pretty cool. I’d like to see this even more developed, as it’s fun to play with already! Thanks for sharing.

    Comment by Daniel — 3/27/2006 @ 11:52 am

  2. hi, this is very cool. i would love to help with something like this . i had some truble loading it on-site but the source code works fine. im a fairly new flash person and love how you give simple open source codes for your works. i dont know a lot that do. recently ive been working on psp flash gaming but even though you do give opwn source i would like to ask your permission before i transmit this to a psp game. the simplicity i think would go great with psp. if you do let me i will give you 100% credt btw.

    Comment by Brandon — 2/27/2007 @ 6:16 pm

  3. Sure, go right ahead!

    Comment by geoff — 2/28/2007 @ 11:50 am

  4. are you intending on publishing more version of this…

    Comment by Brandon — 3/1/2007 @ 3:08 pm

  5. Hello, I was wondering if it would be possible for the AI to have more…intelligence. For example they will find the player by them selves. You see i am making a game much like sploder and i would like an AI just like that. Would it be possible for you to tell me how to do that or possibly give me a sample flash source.

    Sincerly, Keiran

    Comment by Keiran Lovett — 3/30/2007 @ 11:54 pm

  6. Keiran,

    Actually, the AI in Sploder is not very different than the AI code in the source files here. If you’d like to develop it further, I’d recommend looking around for books on game AI.

    The NPCs in this game use fuzzy logic via weighted sense/response.

    Here’s a good place to start: http://www-cs-students.stanford.edu/~amitp/gameprog.html#ai

    Comment by geoff — 3/31/2007 @ 11:14 am

  7. Thank you very much, I have been looking around the internet and public libraries but have not found anything. Thanks again.

    Comment by Keiran Lovett — 4/1/2007 @ 10:40 pm

  8. Umm…
    I had some trouble with the websites. A lot of the codes and other stuf are all mumble jumble to me and i was wondering if you knew a website that has source files. I’m more of a hands-on type of flash gamer. If you can’t find anything that would be ok.

    Comment by Keiran Lovett — 4/2/2007 @ 1:59 am

  9. hi dude. first off, this is really cool. secondly…. i need help x.x

    see i just want a totally simple collision effect, i have one movie clip that collides into another movie clip via motion tweening. i’ll be happy if i can just get one of those objects to flash red on impact.

    please help
    yours sincerely.
    regan.

    xxx_xxxx@msn.com

    Comment by regan — 6/11/2007 @ 12:11 am

  10. Hey, I am beginning to learn how to action script in flash, and I would like to make a game with flash, how can I go about learning how to do that?

    Comment by Taylor — 3/25/2008 @ 4:18 pm

  11. Hey this was one of the best small flash games I’ve seen. It is smooth, controls work on the dime, and the enemies are actually smart. Are you for hire?

    Comment by Brion — 3/29/2008 @ 9:27 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

 

Powered by WordPress