HOME | DD

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 viewok, 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
TheBrushRider [2010-08-02 21:48:06 +0000 UTC]
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!!
👍: 0 ⏩: 0
evolvd-studios [2010-03-18 20:02:21 +0000 UTC]
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!
HOLD ON! DONT GO! WE GOT NEAT RESOURCES!
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.
👍: 0 ⏩: 0
maverick1130 [2009-04-03 06:53:24 +0000 UTC]
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.
👍: 0 ⏩: 0
SirFilth [2009-02-03 03:14:15 +0000 UTC]
i haven't checked it out yet, but perhaps an update with AS 3.0 built in..much cleaner than the older _root mess.
👍: 0 ⏩: 0
YoungLink19 [2008-06-09 16:14:16 +0000 UTC]
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?
👍: 0 ⏩: 0
Leemastah [2008-01-09 03:45:47 +0000 UTC]
Awesome! I'm definitely going to use it, if you don't mind, that is.
👍: 0 ⏩: 0
peoplperson [2007-12-23 06:07:53 +0000 UTC]
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.
👍: 0 ⏩: 0
Ivory-Bell [2007-12-01 02:07:03 +0000 UTC]
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).
👍: 0 ⏩: 0
dan0100 [2007-06-02 15:41:42 +0000 UTC]
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,
Dan
👍: 0 ⏩: 0
pearlia [2007-04-05 17:55:37 +0000 UTC]
I can't download it.
Sorry, I would have really liked it, anyway...
👍: 0 ⏩: 0
campestre [2007-03-29 19:45:06 +0000 UTC]
You rocks!
I implemented some scrolling on levels, but I dunno how I make slopes....
👍: 0 ⏩: 0
dawv [2007-03-03 04:45:42 +0000 UTC]
i just noticed something.... everyone has SOME srta symbol b4 there name.... and there different most of the time... welll sometimes.... y is that?
👍: 0 ⏩: 1
spikesquirrel In reply to dawv [2008-04-09 21:21:32 +0000 UTC]
it's based on subscriptions...
👍: 0 ⏩: 0
rookiexrookie [2007-02-11 04:46:44 +0000 UTC]
pls make a tut for this... i wanna learn more!
👍: 0 ⏩: 0
MARX-V [2006-09-20 04:49:45 +0000 UTC]
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..
👍: 0 ⏩: 0
little-teenager-sam [2006-09-05 18:46:20 +0000 UTC]
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
👍: 0 ⏩: 0
kormyen [2006-09-04 22:30:25 +0000 UTC]
omfg-you-rock-i-love-you
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 .
i 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
`kormyen
👍: 0 ⏩: 0
Z017 [2006-07-15 01:23:45 +0000 UTC]
GuyFlash, you are invited to see my project of a game with your script, hehe
[link]
👍: 0 ⏩: 0
Z017 [2006-07-15 01:23:40 +0000 UTC]
GuyFlash, you are invited to see my prject of a game with your script, hehe
[link]
👍: 0 ⏩: 0
a50 [2006-07-13 09:23:14 +0000 UTC]
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*
👍: 0 ⏩: 0
emo-panda [2006-07-13 01:40:11 +0000 UTC]
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
👍: 0 ⏩: 1
GuyFlash In reply to emo-panda [2006-07-16 12:22:46 +0000 UTC]
have you got macromedia/adobe flash? (not the player) thats what opens it
👍: 0 ⏩: 1
emo-panda In reply to GuyFlash [2006-07-26 02:26:17 +0000 UTC]
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?
👍: 0 ⏩: 1
GuyFlash In reply to emo-panda [2006-07-26 07:48:50 +0000 UTC]
lol, drop into #flashers on dAmn and ask some gurus who are there for tutalige
👍: 0 ⏩: 1
steelwater [2006-07-07 05:34:58 +0000 UTC]
i downloaded it and tried it, very nice! im gonna use it on my lil 8bit starcraft flash creations can i?
👍: 0 ⏩: 1
GuyFlash In reply to steelwater [2006-07-07 09:23:17 +0000 UTC]
sure! link me when your done
👍: 0 ⏩: 0
Tinbanu [2006-06-24 15:52:28 +0000 UTC]
I'm planning to make my own engine soon, I'll probably use this as inspiration, very well done!
👍: 0 ⏩: 0
titanius [2006-06-22 08:30:22 +0000 UTC]
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
👍: 0 ⏩: 1
GuyFlash In reply to titanius [2006-06-22 09:32:48 +0000 UTC]
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
👍: 0 ⏩: 0
Outofthisworld [2006-06-11 14:41:30 +0000 UTC]
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.
👍: 0 ⏩: 0
mr-JB [2006-06-04 18:26:42 +0000 UTC]
Nice and helpful
I have just had an idea with this: A game like this collab....
👍: 0 ⏩: 0
The-Titan [2006-06-04 11:49:33 +0000 UTC]
that is a very nice nice script. as in clean.
next time i would love to see a mountany platform game
👍: 0 ⏩: 0
westykid [2006-06-04 08:40:38 +0000 UTC]
all my thanks are belong to you : D rubs hands gleefully
👍: 0 ⏩: 0
Aetolon [2006-06-04 08:00:15 +0000 UTC]
Man that's awesome, good thing its MX 2004 and not 8
This is gonna become one hell of a great game
👍: 0 ⏩: 0
smurfmx [2006-06-04 05:21:33 +0000 UTC]
This really needs to be setup into a nice class structure. I love the idea, it's great to allow people to make their own platformer game but the code is very hard to mill through (_root vars yuck!). It'd also make things easier on you when you decide to update the source.
As for more walls you could have the user place all the wall mcs and such inside a large container mc. Then you can run a for in loop through the container mc and check if(typeof(this[iterationVar]) == "movieclip"){ wallArray.push(this[iterationVar]); }. Once that's done you can loop through wallArray and just add all the walls that way.
The code in the fla should be simple, something like:
//Scope for first param
//Container for walls 2nd param
var jumpingMan : Platformer = new Platformer(this, this.wallContainer);
//Or something like
Platformer.initalize(this, this.wallContainer);
👍: 0 ⏩: 0
hashbrownies [2006-06-04 04:41:52 +0000 UTC]
qursion! when this is done can i just use it to make a "profit" such as modding the graphics and making my own levels and just having to credit you, or do i have to givve you somemoney as well
👍: 0 ⏩: 1
| Next =>