Join for FREE | Take the Tour Lost Password?
[x]

deviantART

 
©2006-2009 =GirlFlash
:icongirlflash:

Artist's Comments

A newer replacement engine for this is on the way, if you have cs3/cs4 make sure to check out Edward :)

The current alpha release of already Edward has all the features this engine does + more, so check it out! :D

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

Comments


love 3 3 joy 4 4 wow 2 2 mad 0 0 sad 0 0 fear 0 0 neutral 0 0
:iconkelseysharpe383:
I must thank you for posting this. You diserve way more comments, but unfortanatly, most people seem to not care for flash resources. No matter! Great work! :)

--
I believe in Jesus Christ as my Savior. If you do too and aren't scared to admit it, then copy and paste this in your signature.
:icongirlflash:
thanks, but its ok about the comments and stuff, I got a few when I first put it up on my old account :)

--
as for being pants, I too was pants once, however if you practice, you too can take off your pants!

:icondaniel-hunt:
This is really useful, thanks =D.

The one thing I haven't managed to work out though is how to make ceilings. I've tried making movieclips and calling them "mcCEILING1" and so on, but the character still jumps right through them. Is there any way to get this working, or is it just my PC acting up?

Other than that, it's great.
:icondaniel-hunt:
Nevermind, I managed to get it working. I think I made a typo in the instance name.
:iconccyto:
Maybe I should code an engine too, but for arial view games, like GTA/2. I really didn't try downloading this yet, but I'm sure it was great idea.

I miss you in #Flashers, btw. =(

--
Poll: Do you think the combo (Female, Under 18, Attractive, Web Developer/Programmer) exists?
:icondreammachine:
First off, I must say that this is one of the best platform Engines I've seen so far. ^_^

The "gravity" in the engine is perfect! <3

Most tutorials I've used gave me the feeling I was on the moon.. x_x;

And I'm very thankfull you are willing to share it with the comunity! ^^

So, kudo's! :thanks:

I've been diffeling with it myself, kinda fixed the limit to the walls you had..(I think)

But I'm stuck with something else, being the script n00b that I am.. >.>;

You see, when my character jumps, he jusps coolish forward! :D

..But when I jump the other way, he keeps facing the right (->;) direction.. ._.;

My question is.. where can I find/make/fiddle it to make a new jump animation, the facing other way ..and make it work at the same time? o.o

So that I also could make an animation for a battle-animation for instance. ^_^
(if i ever figure out how to make enemies that do more then bump into you.. ^^;)

..I'm not too sure how hard it is to explane, ..but any help would be greatly appreciated. :3

And I agree with kelseysharpe383 ..this should get more respect. >.>

--
Me 'stupid'?
It takes a strict regime of selective ignorance and stubborn optimism to be like me. >.>
:icongirlflash:
yup, thanks for pointing this out to me, here is my quickest fixing pointers:

1. find in the code on the main timeline where it says:
///// start code for showing the right player frame /////

2. at dome point after that, you will see:
//if the player is on the way up
_root.mcPLAYER.gotoAndStop(5);
//tell the player to show the jumping up anim


3. instead of that, you want something like:

//if the player is on the way up
if (_root.mcPLAYER.DIRECTION == "R") {
//if the player is facing right
_root.mcPLAYER.gotoAndStop(5);
//make the player show the jumping right frame
} else {
//if the player is facing left
_root.mcPLAYER.gotoAndStop(10);
//make the player show the jumping left frame
}


4. Then just put your jumping right character in frame 5 of the 'player' movie clip and the jumping left one in frame 10.

---------

that should be pretty much it and a similar thing if you want the falling character to have directional thingies.

I havent tried it out yet but thats basically how to go about fixing it up, if you have any more issues let me know and I'll see if I cant update the source file a little :)

--
as for being pants, I too was pants once, however if you practice, you too can take off your pants!

:icondreammachine:
Well, ther is one thing.. ^^;

You see..

err..

We have a "Go down" animation aswell. ^_^;;

I think I should be able to figure this one out myself though. O.o;

..But it would be a nice note for in your updates. ^^;

The rest of my questions are more of a luxury..

And I shouldn't bother you with those since they have nothing to do with this Tutorial. ^^

(But if you're the helping kind of person I'd be happy to learn it from you ofcourse. O_o; )

Thanks for your help! ^^

--
Me 'stupid'?
It takes a strict regime of selective ignorance and stubborn optimism to be like me. >.>
:icondreammachine:
EDIT: Myesh, i was able to fix the "Going down" thing, thanks to you! ^^

Oh, and just a minor question, for whatpurpose is frame 7 created for..? o.o

--
Me 'stupid'?
It takes a strict regime of selective ignorance and stubborn optimism to be like me. >.>

Details

July 10, 2006
1.3 MB
13.8 KB
300×283

Statistics

87
137 [who?]
33,094 (15 today)
8,437 (4 today)

Site Map