Shop Mobile More Submit  Join Login
Platform Game Engine v0.1 by GuyFlash Platform Game Engine v0.1 by GuyFlash
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 :)

- 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 ;)

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 ;p)
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 :D

edit: oh yeah, its mx2004 file format ;p
Add a Comment:
Bar-Kun Featured By Owner Jan 11, 2012  Hobbyist Digital Artist
what porgram?
maximathevaporeon Featured By Owner Jan 8, 2012  Student Traditional Artist
TheBrushRider Featured By Owner Aug 2, 2010
Man, I've been searching for something to teach me a little about flash game engines!

That's reeeally useful, especially the comments in the script! Thanks a lot!!
CoolPrinter Featured By Owner May 25, 2010   Filmographer
evolvd-studios Featured By Owner Mar 18, 2010
Wow, awesome job, no rlly. XD I never tought of most of what u said, downloaded, and really recomend this... Hey, were really short on members, and we would now like you to join our new group, evolvdstudios-online!


If ur not good at animating, bad at, or have no idea even the most basic actionscript flash game programing, well, this club is just for you. We got:
*Flash tutorials
*Learn game programing in 20 minutes! (Im an example, really, was a total noob)
*Not good at drawing? We got a sprite database with many ALREADY ANIMATED gifs and sprites from ur favourite characters like sonic and mario, from the next gen smash brawl and sonic advance consoles, ready to use in flash. Dont like spritesheets? We do the work for you!
*With our new sound effect archive, you can now even download our voice, scenery and sound effect packs such as water, ice cracking and stuff like that, soon to grow.
*Have good ideas but cant use them? Ask your questions here!

Wether ur a sprite animator, flash pencil stop motion artist, or a gameprogramer, we all love them, no matter what your level is, here u get better! So what u waiting for?! HAVE A LOOK AROUND AND JOIN!


note: We use personal invitations scince we feel its a bit more direct, and we run out of pending invites...XD So what do u think? IF u you want to join, reply coment, otherwise ignore.
maverick1130 Featured By Owner Apr 2, 2009
quick question about adding in more platforms and walls.

When you drag them from the library they are all the same movie clip. How do you assign each its own value so the script recognizes it as "mcPLATFORM#(1, 2, 15, moose)"?

Modifying the actual script to get it to recognize more than 10 of each isn't a problem though.

Using CS3 in case something has been moved.
SirFilth Featured By Owner Feb 2, 2009  Hobbyist Digital Artist
i haven't checked it out yet, but perhaps an update with AS 3.0 built in..much cleaner than the older _root mess.
nooaaa Featured By Owner Jan 9, 2009
how do i use this?
carmiecarmela Featured By Owner Aug 23, 2008
Awsome. Love it.
komozeck Featured By Owner Jun 30, 2008  Professional General Artist
this is great...i will try when i go to home :)
YoungLink19 Featured By Owner Jun 9, 2008
I see the scripts are niely made with all the commentaries.

I know almost nothing about Flash, and would like to ask about the keys set for movement and jumping. Besides keys 37~40, what are other values for?
Draconis-Wyrm Featured By Owner Apr 22, 2008   Writer
Does it work with Actionscript 3.0?
PsyPing Featured By Owner Feb 9, 2008
I tried it quickly, seems to work great.

I'm entirely new at Flash, but I want to be able to make a little game within the next twelve months, so this will probably help me quite a bit. ^^

Leemastah Featured By Owner Jan 8, 2008
Awesome! I'm definitely going to use it, if you don't mind, that is.
peoplperson Featured By Owner Dec 22, 2007
could anyone download this and save it as an earlier version? (I have flash mx)or just give me the code to make my character animated while walking... please.
Ivory-Bell Featured By Owner Nov 30, 2007
omg, you're awsome you're awsome you're awsome. Now I can finally learn how to create my own game! (since many online tutorials are really unhelpful).
VolvE-chan Featured By Owner Jul 21, 2007
Very easy but good ^^
dan0100 Featured By Owner Jun 2, 2007   Interface Designer
I first played this and thought wow, this looks nice. I swear you are the first person to actually do a decent platform engine using custom backgrounds, i thought it was my idea xD!.
But ewwwww you used hitTest() for your collision script! I thought this was gona be tile based :(. Love the graphics though! You should imrpove/add stuff and make it a proper game, would be awsem!
Good luck,
pearlia Featured By Owner Apr 5, 2007
I can't download it.
Sorry, I would have really liked it, anyway...
campestre Featured By Owner Mar 29, 2007   Interface Designer
You rocks!
I implemented some scrolling on levels, but I dunno how I make slopes.... :(
dawv Featured By Owner Mar 2, 2007
i just noticed something.... everyone has SOME srta symbol b4 there name.... and there different most of the time... welll sometimes.... y is that?
spikesquirrel Featured By Owner Apr 9, 2008

it's based on subscriptions...
rookiexrookie Featured By Owner Feb 10, 2007
pls make a tut for this... i wanna learn more!
yammerz Featured By Owner Dec 2, 2006
MARX-V Featured By Owner Sep 19, 2006
man,, this is amazing... i can create games in flash but not the way you've created your own... nice game engine.. i hope you could create a tutorial about this..
little-teenager-sam Featured By Owner Sep 5, 2006
nicley coded when you play it, but when i select the character MC and click actions it's blank. same for the walls. is it cause i have flash 8?? flash mx2004 and flash 8 both use actionscript 1&2, so i don't think that that's it.

but you really are a script god. i cant even script collision detection :dead:
kormyen Featured By Owner Sep 4, 2006  Professional Digital Artist

ive tried 3 times and counting to create a platform haha, i even started to learn tile based =0, and fuch, i think im too stupid for that haha.

when i get a chance im going to have to study your coding, and use it for referance te-max =D.

i :heart: you


if there was a 'ultimate fav' option, id click it over and over, but i guess i can merely add to my favourites =)

what i always found difficulty with was the fact that with visual based code in flash the player - because of the grravity y axis changing var falls into the platforms and sometimes through *arrrggghhhh* haha. Also, i always had wondered how i would code that skidding, you rule dude haha.

If you have any flash tips, im utterly all ears ;)

Ill let you know how i get on if you care

Z017 Featured By Owner Jul 14, 2006  Hobbyist General Artist
GuyFlash, you are invited to see my project of a game with your script, hehe

Z017 Featured By Owner Jul 14, 2006  Hobbyist General Artist
GuyFlash, you are invited to see my prject of a game with your script, hehe

a50 Featured By Owner Jul 13, 2006
omg you are my new freaking flash god! i have been DYING to find out how to do platformer stuff, and you even hand it over in a FLASH FILE! *worships the ground you walk on* :D :D :D
emo-panda Featured By Owner Jul 12, 2006   Traditional Artist
what do i download it to? it wants to go to flashplayer(the program), but when i do that it just has 3 frames and nothing to do
GuyFlash Featured By Owner Jul 16, 2006
have you got macromedia/adobe flash? (not the player) thats what opens it ;)
emo-panda Featured By Owner Jul 25, 2006   Traditional Artist
oh yeah...i have like the movie making thingy ... is that right? i just dont know what to do afterwards... -_-" do i need like super intellegence to do it?
GuyFlash Featured By Owner Jul 26, 2006
lol, drop into #flashers on dAmn and ask some gurus who are there for tutalige :)
emo-panda Featured By Owner Jul 26, 2006   Traditional Artist
k, thanks :D
steelwater Featured By Owner Jul 6, 2006
i downloaded it and tried it, very nice! im gonna use it on my lil 8bit starcraft flash creations can i?
GuyFlash Featured By Owner Jul 7, 2006
sure! link me when your done :D
Tinbanu Featured By Owner Jun 24, 2006   Interface Designer
I'm planning to make my own engine soon, I'll probably use this as inspiration, very well done!
titanius Featured By Owner Jun 22, 2006   Interface Designer
Its interesting to see how other people code, i tend to put most of my code on a movieclip such as the character simply to avoid all the _root.mcPlayer stuff... i known its bad practice but its so much easier

I dunno which is better performance-wise but what u could do regarding the naming of platforms is to put them all in one clip and do a shapeFlag hitTest with a point that is the character's feet (that way u don't need naming of platforms).

It actually means that u don't need platforms, u could just draw the shape of your terrain with the paintbrush.
That's what i did with ultimate easter egg hunt.

anyway, hope that was of some help
GuyFlash Featured By Owner Jun 22, 2006
yeah, actually i shouldnt have done all the '_root.' stuff, but shapeflagging means lag unfortunetly, this way you can have much more efficient collision detection :)
Outofthisworld Featured By Owner Jun 11, 2006  Hobbyist Photographer
I took like 20 mins jumping around trying to break a barrier or something. I have to say you did your work, I couldn't find a bug. :D
whitechair08 Featured By Owner Jun 5, 2006
great fla man, sweet!
iceiclepop Featured By Owner Jun 5, 2006
Invader-Zero Featured By Owner Jun 4, 2006
Awesome! :)
mr-JB Featured By Owner Jun 4, 2006   Filmographer
Nice and helpful :)
I have just had an idea with this: A game like this collab....
Age2003 Featured By Owner Jun 4, 2006
Zing! :D
deArtistofWar Featured By Owner Jun 4, 2006  Professional Digital Artist
jap ,
The-Titan Featured By Owner Jun 4, 2006  Professional Digital Artist
that is a very nice nice script. as in clean. ;P

next time i would love to see a mountany platform game ;P
westykid Featured By Owner Jun 4, 2006  Professional General Artist
all my thanks are belong to you : D rubs hands gleefully
Aetolon Featured By Owner Jun 4, 2006  Professional
Man that's awesome, good thing its MX 2004 and not 8 =P
This is gonna become one hell of a great game :thumbsup:
Add a Comment:


Submitted on
June 3, 2006
File Size
1.3 MB


122 (who?)