Forum Topic: I've made a jumping engine for all.

(29,527 views • 373 replies)

This topic is 13 pages long. [ 135 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 ]

<< < > >>
None

JohanL

Reply To Post Reply & Quote

Posted at: 2/12/06 03:08 PM

JohanL NEUTRAL LEVEL 20

Sign-Up: 11/05/05

Posts: 1,082

The game
Alright I tried out your jumping engine and it's awsome!
I just need help with two things.. One, the character shouldn't be able to walk in the air
so I want the character to stay at the jumpframe in the air all the time. Two, the character bounces down a little when he lands, i want him to stop directly when he touches the ground..
If you could help me with this It would be great! :)


Questioning

JohanL

Reply To Post Reply & Quote

Posted at: 2/13/06 05:13 AM

JohanL NEUTRAL LEVEL 20

Sign-Up: 11/05/05

Posts: 1,082


None

Vengeance

Reply To Post Reply & Quote

Posted at: 2/13/06 05:16 AM

Vengeance EVIL LEVEL 28

Sign-Up: 03/18/05

Posts: 5,035

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.
eg. for the automatically at one frame in the air put this:
if(jump){
gotoAndStop("jumping frame")
}
not exactly sure how the jump is set up as i'm a lazy bastard. but it should be along those lines.

========|| WWWWWWWW>[-[Blog] - [Audio] - [Userpage] - [Flash] - [Last.fm]-]<WWWWWWWW ||========

BBS Signature

None

Nailuj

Reply To Post Reply & Quote

Posted at: 2/21/06 08:33 PM

Nailuj LIGHT LEVEL 07

Sign-Up: 10/08/05

Posts: 476

Mine doesn't work...

The space between the MC counts as part of it :(


None

Moonhog

Reply To Post Reply & Quote

Posted at: 2/26/06 11:22 AM

Moonhog DARK LEVEL 25

Sign-Up: 07/31/04

Posts: 4,381

That's some helpful script right there! Cheers.

BBS Signature

Happy

Imp-beast

Reply To Post Reply & Quote

Posted at: 4/5/06 06:31 PM

Imp-beast LIGHT LEVEL 12

Sign-Up: 02/03/01

Posts: 10

wow great scripting man!
too bad you can't get a 5 for code haha


None

Adeph101

Reply To Post Reply & Quote

Posted at: 4/14/06 03:30 PM

Adeph101 EVIL LEVEL 04

Sign-Up: 04/05/06

Posts: 82

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


None

WolfAkela

Reply To Post Reply & Quote

Posted at: 4/16/06 02:58 AM

WolfAkela LIGHT LEVEL 08

Sign-Up: 12/19/05

Posts: 2,324

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


None

BradBleiProductions

Reply To Post Reply & Quote

Posted at: 4/29/06 08:41 PM

BradBleiProductions LIGHT LEVEL 02

Sign-Up: 04/29/06

Posts: 66

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


None

TheWolfe

Reply To Post Reply & Quote

Posted at: 4/29/06 08:48 PM

TheWolfe LIGHT LEVEL 13

Sign-Up: 12/28/05

Posts: 3,348

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

None

rabidbaboy

Reply To Post Reply & Quote

Posted at: 4/30/06 12:46 AM

rabidbaboy EVIL LEVEL 07

Sign-Up: 08/21/05

Posts: 699

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.


None

Sn0rkel

Reply To Post Reply & Quote

Posted at: 4/30/06 12:47 AM

Sn0rkel NEUTRAL LEVEL 03

Sign-Up: 04/08/06

Posts: 342

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.


Happy

rabidbaboy

Reply To Post Reply & Quote

Posted at: 4/30/06 12:54 AM

rabidbaboy EVIL LEVEL 07

Sign-Up: 08/21/05

Posts: 699

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.


None

rabidbaboy

Reply To Post Reply & Quote

Posted at: 4/30/06 01:00 AM

rabidbaboy EVIL LEVEL 07

Sign-Up: 08/21/05

Posts: 699

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?


None

BradBleiProductions

Reply To Post Reply & Quote

Posted at: 4/30/06 12:09 PM

BradBleiProductions LIGHT LEVEL 02

Sign-Up: 04/29/06

Posts: 66

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.


Angry

rabidbaboy

Reply To Post Reply & Quote

Posted at: 4/30/06 11:21 PM

rabidbaboy EVIL LEVEL 07

Sign-Up: 08/21/05

Posts: 699

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.


BradBleiProductions LIGHT LEVEL 02

Sign-Up: 04/29/06

Posts: 66

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


None

rabidbaboy

Reply To Post Reply & Quote

Posted at: 5/1/06 09:31 PM

rabidbaboy EVIL LEVEL 07

Sign-Up: 08/21/05

Posts: 699

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


Happy

PinkSkull

Reply To Post Reply & Quote

Posted at: 5/1/06 11:31 PM

PinkSkull LIGHT LEVEL 22

Sign-Up: 01/06/06

Posts: 1,503

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

La vida no tiene sentido xD

BBS Signature

None

Rystic

Reply To Post Reply & Quote

Posted at: 5/8/06 09:29 PM

Rystic LIGHT LEVEL 50

Sign-Up: 03/09/02

Posts: 956

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>


None

Rystic

Reply To Post Reply & Quote

Posted at: 5/8/06 09:31 PM

Rystic LIGHT LEVEL 50

Sign-Up: 03/09/02

Posts: 956

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 :(


None

Trunks

Reply To Post Reply & Quote

Posted at: 5/8/06 09:33 PM

Trunks DARK LEVEL 22

Sign-Up: 07/31/05

Posts: 4,167

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

'05 users for the win :3

BBS Signature

None

Rystic

Reply To Post Reply & Quote

Posted at: 5/8/06 09:34 PM

Rystic LIGHT LEVEL 50

Sign-Up: 03/09/02

Posts: 956

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


None

Rystic

Reply To Post Reply & Quote

Posted at: 5/8/06 09:37 PM

Rystic LIGHT LEVEL 50

Sign-Up: 03/09/02

Posts: 956

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.


None

23450

Reply To Post Reply & Quote

Posted at: 5/9/06 12:16 AM

23450 LIGHT LEVEL 27

Sign-Up: 05/28/03

Posts: 7,302

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.

Halo 3 GamerTag: XCornDawgX


None

xXmastermindXx

Reply To Post Reply & Quote

Posted at: 5/31/06 02:00 PM

xXmastermindXx NEUTRAL LEVEL 07

Sign-Up: 01/01/06

Posts: 44

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?


Happy

shinobitechno

Reply To Post Reply & Quote

Posted at: 5/31/06 04:54 PM

shinobitechno DARK LEVEL 19

Sign-Up: 02/28/06

Posts: 185

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


None

Rystic

Reply To Post Reply & Quote

Posted at: 5/31/06 04:58 PM

Rystic LIGHT LEVEL 50

Sign-Up: 03/09/02

Posts: 956

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


Happy

Chi3f

Reply To Post Reply & Quote

Posted at: 6/5/06 02:43 AM

Chi3f DARK LEVEL 10

Sign-Up: 06/04/06

Posts: 18

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!


None

Master-Light

Reply To Post Reply & Quote

Posted at: 7/18/06 08:40 PM

Master-Light LIGHT LEVEL 08

Sign-Up: 12/13/05

Posts: 18

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.


All times are Eastern Standard Time (GMT -5) | Current Time: 02:51 AM

<< Back

This topic is 13 pages long. [ 135 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 ]

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!