00:00
00:00

I've made a jumping engine for all.

43,350 Views | 367 Replies
New Topic Respond to this Topic

Response to I've made a jumping engine for all. 2006-04-14 15:30:42


i have a question... how would you animate this script?

Response to I've made a jumping engine for all. 2006-04-16 02:58:48


This is weird. When I put the codes, both the block and the ball falls. :?

Response to I've made a jumping engine for all. 2006-04-29 20:41:07


Amazing, wow. Thanks. Now all i need is hitcodes, and weapons

Response to I've made a jumping engine for all. 2006-04-29 20:48:15


ok i know this is a dumb question, and to u all obvious, but i must say idk wut ur talking about. im not familiar with techical terms. so wut is all of this. a engine used for flash? is this to improve a flash program? i dont understand will sumone be nice enough to explain it to me and not tell me how stupid im being?


RAWR.

BBS Signature

Response to I've made a jumping engine for all. 2006-04-30 00:46:43


damn.now the portal will be flooded with platformers.
<trashes own platformer project>.
'twill be based on graphics and gameplay now, i guess.
nice work, though.

Response to I've made a jumping engine for all. 2006-04-30 00:47:22


At 4/30/06 12:46 AM, rabidbaboy wrote: damn.now the portal will be flooded with platformers.
<trashes own platformer project>.
'twill be based on graphics and gameplay now, i guess.
nice work, though.

no it wont.
this thread is so old, nice bumb newb.

Response to I've made a jumping engine for all. 2006-04-30 00:54:51


At 4/29/06 08:48 PM, TheWolfe wrote: ok i know this is a dumb question, and to u all obvious, but i must say idk wut ur talking about. im not familiar with techical terms. so wut is all of this. a engine used for flash? is this to improve a flash program? i dont understand will sumone be nice enough to explain it to me and not tell me how stupid im being?

it's the code for a platformer (megaman series, metal slug series, mario series) engine.

Response to I've made a jumping engine for all. 2006-04-30 01:00:07


At 4/30/06 12:47 AM, Sn0rkel wrote: no it wont.
this thread is so old, nice bumb newb.

oh, sorry, didn't realize.
wow, thanks for telling me, you nice BUMB jerk.
could've told me without being mean, but noooo, your day won't be complete without flaming anyone, huh?

Response to I've made a jumping engine for all. 2006-04-30 12:09:52


At 4/30/06 01:00 AM, rabidbaboy wrote:
could've told me without being mean, but noooo, your day won't be complete without flaming anyone, huh?

pretty sure his comment was to you, yet talking about me.

Response to I've made a jumping engine for all. 2006-04-30 23:21:16


At 4/30/06 12:09 PM, BradBleiMusic wrote: pretty sure his comment was to you, yet talking about me.

as if it matters?people here are so thick, they think being a noob is the pits.
well, they were one too, no matter how long ago that was.
my advice: don't mind their stupid "you are a noob" retorts. just try to get better.

Response to I've made a jumping engine for all. 2006-05-01 16:16:01


At 4/30/06 11:21 PM, rabidbaboy wrote:
my advice: don't mind their stupid "you are a noob" retorts. just try to get better.

Don't need it. I'm not worried. You seem to be though....

Response to I've made a jumping engine for all. 2006-05-01 21:31:09


At 5/1/06 04:16 PM, BradBleiProductions wrote: Don't need it. I'm not worried. You seem to be though....

haha, well, maybe that's 'cause i've had too many encounters with such people.
sorry if i sounded worried.

cheers

Response to I've made a jumping engine for all. 2006-05-01 23:31:50


woah i love you for having the patience to make that.and for understanding us noobs who cant make anything interesting in flash..the code worked well for me..thank you :)

Response to I've made a jumping engine for all. 2006-05-08 21:29:07


At 5/1/06 11:31 PM, kirehashi wrote: woah i love you for having the patience to make that.and for understanding us noobs who cant make anything interesting in flash..the code worked well for me..thank you :)

Woah... We're up to 11 pages! I'm glad my jump engine is still helping people.

Anyway, just so everyone knows, I'm still alive. I have a new email address (chris.bielak@gmail.com). Also, I've become a coder for hire, to anyone whose interested. Just go to http://www.rentacode..ntACoder/default.asp
and look me up. As you know, I do mostly flash, but I've begun dwelling in the realm of java lately. I'm going on five years of experience now with flash, so you know if you hire me, you'll be getting your money's worth.

</whoringself>

Response to I've made a jumping engine for all. 2006-05-08 21:31:22


At 2/13/06 05:16 AM, -Vengeance- wrote:
At 2/13/06 05:13 AM, JohanL wrote: Hello?
this topic was made in 04, it's kinda dead. and how about you try to script it yourself, it's really not hard.

I would hope not :(

Response to I've made a jumping engine for all. 2006-05-08 21:33:40


Wow, this thread is still going???

WTF????

Anyways, great jumping engine, and I've found that a higher framerate makes this work better. If you use the default 12 framerate, you need to decrease the maxfall. I just remembered I posted that a couple pages ago.

Maybe you are getting so much publicity because GAMECUBICLE put you in his tutorial?

=P

wew

Response to I've made a jumping engine for all. 2006-05-08 21:34:22


At 5/8/06 09:31 PM, Rystic wrote:
At 2/13/06 05:16 AM, -Vengeance- wrote:
At 2/13/06 05:13 AM, JohanL wrote: Hello?
this topic was made in 04, it's kinda dead. and how about you try to script it yourself, it's really not hard.
I would hope not :(

Not dead, that is.....

Response to I've made a jumping engine for all. 2006-05-08 21:37:20


At 5/8/06 09:33 PM, LordTrunks wrote: Wow, this thread is still going???

WTF????

Anyways, great jumping engine, and I've found that a higher framerate makes this work better. If you use the default 12 framerate, you need to decrease the maxfall. I just remembered I posted that a couple pages ago.

Maybe you are getting so much publicity because GAMECUBICLE put you in his tutorial?

=P

Yea... gamecubicle and I are tight now that he's distributing my engine w/ his tutorial. Personally, I like the publicity because more people get my engine.

Response to I've made a jumping engine for all. 2006-05-09 00:16:38


At 2/13/06 05:16 AM, -Vengeance- wrote: this topic was made in 04, it's kinda dead.

lol. I think its funny how i posted on the second page of this thread. I feel so nooby looking back at it now.


BBS Signature

Response to I've made a jumping engine for all. 2006-05-31 14:00:07


dude i always use this engine for my games and im planning on using it for one of my games im making for newgrounds (very big game). also rystic you are one of the best coders i know... If you got any hints for a noob coder like me can you give me a few hints on how to make a good sidescroller? i mean i know how to make the hittests, animation, basic coding, thats about it... anyways good luck with your job man, did i mention your one of the best coders?

Response to I've made a jumping engine for all. 2006-05-31 16:54:02


hey rystic, i wanted to knoe if you could contact me over AIM for a couple inquiries and questions i have for you.
im making a game and i need a lil AS help so i will be VERY VERY gratefull and give you major creds for the game.

if you can / want to help me, tell me your aim plz :D

Response to I've made a jumping engine for all. 2006-05-31 16:58:22


At 5/31/06 04:54 PM, shinobitechno wrote: hey rystic, i wanted to knoe if you could contact me over AIM for a couple inquiries and questions i have for you.
im making a game and i need a lil AS help so i will be VERY VERY gratefull and give you major creds for the game.

if you can / want to help me, tell me your aim plz :D

My AIM is ChrisBielak

Response to I've made a jumping engine for all. 2006-06-05 02:43:17


First off I'd like to thank Rystic for this great jump engine! This has helped me improve my AS skills and understand platformers better. Great job!

The following is a Combination of the Jump code as well as a few others from this thread about making the "Hero" animatel left and right movement. This is only the code for the character

For the sake of arguement I'll recap some of what's already been said.

1) Make a Movie Clip (MC). If you don't know how to do this, read a less advanced tutorial.
2) Edit the clip. Make 4 KeyFrames and add stop(); to each frame. Do the Following
FRAME 1: Facing Right
FRAME 2: Moving Right
FRAME 3: Facing Left
FRAME 4: Facing Left
FRAME 5: Attacking Right
FRAME 6: Attacking Left
FRAME 7: Jumping (flip)

3) Double click untill you're in Scene 1 again (main window).
4) Now Click on your charecter. In the ActionsPanel, paste the following...

onClipEvent (load) {
fall = false;
_name = "circle";
jump = 0;
speed = 20;
jumpheight = 20;
maxfall = -20;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (Key.isDown(Key.SPACE) && fall == false && jump == undefined) {
fall = true;
jump = jumpheight;
}
if (jump<>undefined) {
if (jump>maxfall) {
jump--;
}
_y -= jump;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
_x -= speed;
}
if (Key.isDown(Key.RIGHT)) {
_x += speed;
}
}onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
if (Key.isDown(17)) {
_root.moving_2="left"
} else {
_root.moving_2=""
}
_root.moving="left"
if(fall == true) {
if(_root.moving_2=="left") {
_root.circle.gotoAndStop(1)
} else {
_root.circle.gotoAndStop(7)
}
} else {
if (Key.isDown(90)) {
if(_root.moving=="right") {
if(_root.moving_2=="left") {
_root.circle.gotoAndStop(5)
} else {
_root.circle.gotoAndStop(6)
}
}
if(_root.moving=="left") {
_root.circle.gotoAndStop(6)
}

}
if(_root.moving_2 == "left") {
_root.circle.gotoAndStop(2)
} else {
_root.circle.gotoAndStop(4)
}
}
} else {
if(_root.moving=="left") {
if (Key.isDown(90)) {
if(_root.moving_2=="left") {
_root.circle.gotoAndStop(5)
} else {
_root.circle.gotoAndStop(6)
}
} else {
if(_root.moving_2=="left") {
_root.circle.gotoAndStop(1)
} else {
_root.circle.gotoAndStop(3)
}}
}
if (Key.isDown(Key.RIGHT)) {
if (Key.isDown(17)) {
_root.moving_2="right"
} else {
_root.moving_2=""
}
_root.moving="right"
if(fall == true) {
if(_root.moving_2=="right") {
_root.circle.gotoAndStop(3)
} else {
_root.circle.gotoAndStop(7)
}} else {
if(_root.moving_2=="right") {
_root.circle.gotoAndStop(4)
} else {
_root.circle.gotoAndStop(2)
}}} else {
if(_root.moving=="right") {
if (Key.isDown(90)) {
if(_root.moving_2=="right") {
_root.circle.gotoAndStop(6)
} else {
_root.circle.gotoAndStop(5)
}} else {
if(_root.moving_2=="right") {
_root.circle.gotoAndStop(3)
} else {
_root.circle.gotoAndStop(1)
}}}}}}

This is basically just a couple different people's suggestions in this thread. I also added a backflip animation to the jump. Although it may not be the best, it does the trick. I tried to clean it up, but this is all I could do to keep it from getting errors. I lack advanced AS skills hehe.

Also, if you're having problems with "not jumping" do what Rystic said and make sure you align your charecter in the CENTER of the crosshairs (while editing). Also, you may have to adjust >> maxfall = -84; << since my MC was smaller , I had to tweak mine a little, but it works perfect!

Thanks again Rystic!

Response to I've made a jumping engine for all. 2006-07-18 20:40:11


I've had issues having jumping working never the actual platforms but with this code that is perfected the only problem is if you are going for more of a custom game in which you can go off of springs and such this code would not work for it you might even need to take the code out and come up with your own (oh no for all noobs out there). Any way to solve this its only thearetical i havent actually tried this jump engine im perfectly fine with mine of having all the coding in the character instance.

Response to I've made a jumping engine for all. 2006-07-22 23:49:44


Does anyone know if my engine works with flash 8?

Response to I've made a jumping engine for all. 2006-07-31 21:23:10


no it's not rellay working for me and i'm using flash 8 pro and the cracater i had was half why trough the the rectangle stragely very stragely

Response to I've made a jumping engine for all. 2006-07-31 22:34:54


I have flash 8 Pro, and this awesome script doesn't work. =(

The character MC falls half way into the block, and he can't jump.

Gimme a sec and i'll post an example.

Response to I've made a jumping engine for all. 2006-07-31 22:37:35


Read my fix a couple pages back (when you change the jumpspeed and maxfall, etc) for your framerate (I can bet you guys are using 12 fps) and then try it. I would imagine it would work, but I'm not sure.

Hope that works... and why did you bump this thread again instead of PMing Rystic?


wew

Response to I've made a jumping engine for all. 2006-07-31 22:42:55


At 7/31/06 10:37 PM, LordTrunks wrote: Read my fix a couple pages back (when you change the jumpspeed and maxfall, etc) for your framerate (I can bet you guys are using 12 fps) and then try it. I would imagine it would work, but I'm not sure.

Hope that works... and why did you bump this thread again instead of PMing Rystic?

Oh yea....

Response to I've made a jumping engine for all. 2006-08-08 15:06:53


i made the game and everything works except when i make walls that u dont walk on like so u cant go past it if u jump into it but anyways the walls dont work i just go right through it and i do have flash pro 8 can somebody who has fash 8 help?