HOME | DD

GuyFlash — Platform Game Engine v0.1

Published: 2006-06-03 23:51:04 +0000 UTC; Views: 27617; Favourites: 115; Downloads: 7376
Redirect to original
Description its a .fla file so you will need to click 'download to desktop' to view

ok, first off this is horrendously raw and I still need to do a lot of work on it, however some of the code is commented and what isnt should be fairly self explanitory.
I am only releasing the 0.1 version because I want anybody to find any bugs that are in at this point, and some people may just want to see how I code my platform games

Features:
- running, jumping and crouching (also skidding )
- simple system of using floors, walls and ceiling movieclips which the playable character interacts with appropriately
- easily modified character for various animations
- level appearance and complexity is as good as your flash artwork can be
- teleporting between levels so there is screen-by-screen progression similar to early prince of persia
- game loop code all commented

Still to come:
- a help file
- support for more than 10 floors, 10 walls and 10 ceilings
- a moddable main menu featuring the ability to change the controls
- improved (and hopefully simpler) teleporting
- built in preloader
- example game and tutorial on making it

stuff to note about v0.1:
-walls ceilings and floors need to be named uniquely (mcWALL1,mcWALL2,mcWALL3... mcCEILING1,mcCEILING2... mcPLATFORM1,mcPLATFORM2 etc)
-you can have a maximum of 10 walls, 10 ceilings and 10 platforms
-walls ceilings and platforms must not have the same name and number or they wont work
-PLEASE let me know if you need help or find bugs, I want to make this easy to use.
-also tips on coding would be much appreciated

IMPORTANT!:
I havent had time to decide which licence to put on this code but I'll say this:
you are free to read, use and modify this code for the purposes of learning or making a game (even for profit) however you must credit me and give a link back to my page (and please dont be shy about it or hide the link somewhere, you should have a credits page in your menu, you want traffic too right )
by using this you also realise that it is incomplete and I may change the file or improve it without informing you (i.e theres better stuff on the way)

ok, I think thats all the nonsence I need to waffle about, check it out. make something cool people

edit: oh yeah, its mx2004 file format
Related content
Comments: 68

GuyFlash In reply to ??? [2006-06-04 10:28:03 +0000 UTC]

you need give me no money, just a link to my page will do

👍: 0 ⏩: 0

0pie [2006-06-04 03:56:19 +0000 UTC]

And I just wonder, why did you make all the graphixs into the background?

👍: 0 ⏩: 0

0pie [2006-06-04 03:54:45 +0000 UTC]

Umm, what did you make the "player" in? Flash?

👍: 0 ⏩: 0

championchap [2006-06-04 02:19:46 +0000 UTC]

hmm, ill give it a look tomorrow i guess
but i dont think ill be using your code.. ill be all about my own

i find it easier to write my own than to edit somebody elses

👍: 0 ⏩: 0

rockintom99 [2006-06-04 02:09:30 +0000 UTC]

Very nice. I should be ripping it apart pretty soon

Also, i think GPL would fit nicely for licensing.

👍: 0 ⏩: 1

rockintom99 In reply to rockintom99 [2006-06-04 02:44:14 +0000 UTC]

Theres only one thing i can think of that would be simpler:
In the character, where you have the multiple animations on different frames, it is easier to have a single walking animation facing right (or left, whatever), and change the xscale to -100 when the left key is pressed. same could be said for all animations. Instead of the character doing a different animation, the sprite will just be facing the opposite direction.

Of course, that wouldn't work when you are using two different animations for left walk and right walk. But, in most cases, that doesn't happen.

Anyway, very nice engine. The collision detection is how i thought it would be, i just always assumed that was a very slow method. Guess not. Maybe i shall finally get off my ass and make a neat platform game

👍: 0 ⏩: 1

fudging In reply to rockintom99 [2006-09-22 17:07:19 +0000 UTC]

I've seen the occasional game where that's been abused; how does a character with a scar over one eye switch which eye it's over? xD

👍: 0 ⏩: 0

painisenjoyment [2006-06-04 00:21:31 +0000 UTC]

rofl! i went to click "download to desktop" and mindlessly clicked "add to favorites". and, for some odd reason, it will not let me download it to me desktop. i hate the internet and deviantART and firefox. i just favorited something that i can't even view!

👍: 0 ⏩: 1

GuyFlash In reply to painisenjoyment [2006-06-04 01:02:31 +0000 UTC]

err, I dont usually say this, and I will regret it in the morning... try ie?

...

I regret saying it allready

👍: 0 ⏩: 2

BlahMan179 In reply to GuyFlash [2008-07-07 22:46:22 +0000 UTC]

I use firefox, but whats qrong with IE?

👍: 0 ⏩: 0

painisenjoyment In reply to GuyFlash [2006-06-04 01:35:30 +0000 UTC]

ew! you said IE! i got it to work after like 60 tries, and opening and closing forefox a few times. haha.

👍: 0 ⏩: 0

Funky-Chickin [2006-06-04 00:18:08 +0000 UTC]

:humpsyou:

yay!

👍: 0 ⏩: 0

KronicKatt [2006-06-03 23:54:48 +0000 UTC]

-.- It looks awesome but I don't think I have the mx2004 thingy, cuz when I download it, it says Unexpected file format or somethin :c

👍: 0 ⏩: 1

GuyFlash In reply to KronicKatt [2006-06-04 00:14:09 +0000 UTC]

sorry, thats the earliest flash type I can save it as.

👍: 0 ⏩: 1

KronicKatt In reply to GuyFlash [2006-06-04 14:41:14 +0000 UTC]

Tis ok, I don't really do much of that kind of gaming stuff anyways. Even though I was thinking about it, but it would be way too hard! XP

👍: 0 ⏩: 1

Age2003 In reply to KronicKatt [2006-06-04 20:51:54 +0000 UTC]

Well someone who downloads the MX 2004 version could save it as an MX .fla for you. But then some of the coding may not work because Flash MX uses Actionscript v1 whereas Flash MX2004 and Flash 8 both use Actionscript v2.

👍: 0 ⏩: 1

YoungLink19 In reply to Age2003 [2008-06-09 16:10:41 +0000 UTC]

Thie particular file uses ActionScript 1.0

👍: 0 ⏩: 0


<= Prev |