00:00
00:00
Newgrounds Background Image Theme

GravityCrush just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

I've made a jumping engine for all.

50,551 Views | 365 Replies
New Topic Respond to this Topic

Response to I've made a jumping engine for all. 2005-08-02 13:41:57


How do I make the litle ball turn right when you go right and left when you go left?
I would greatly appriciate any help I can get because im just starting with the flash scripting language.......Its just not the same as visual basic or dm. rofl

Response to I've made a jumping engine for all. 2005-08-02 16:47:01


can some one send me a good game engine/

Response to I've made a jumping engine for all. 2005-08-03 20:10:01


um, with with vertical blocks, when my guy touchs one, he appears on the top of them. how do i fix this?

Response to I've made a jumping engine for all. 2005-08-17 12:06:38


At 7/18/05 04:10 PM, B0XCARRACER wrote:
At 7/2/05 01:24 PM, Rystic wrote:
At 6/6/05 04:39 PM, etchandsketchdesigns wrote: This is Amazing! that you so much!
You're a fucking thief. Don't post here, n00b.
How am I a thief for saying thank-you, shut up you stuiped n00b!. and to let all you know, I am -trix-
-toast- you wouldn't know me but plenty on NG do :P...some good some bad things about me, but i am no n00b, and i don't steal rystic, so shut the hell up.

Is your name etchandsketchdesigns?

And by the way, if you are etchandsketchdesigns and you just changed your name, you are a goddamn thief. You posted my code without crediting me for it, and made it sound as though YOU wrote it.

Response to I've made a jumping engine for all. 2005-08-17 12:08:41


At 8/3/05 08:10 PM, shatterspike1_SSlock wrote: um, with with vertical blocks, when my guy touchs one, he appears on the top of them. how do i fix this?

Is the character centered inside the clip? If not, that might be giving you issues.

Response to I've made a jumping engine for all. 2005-08-17 12:17:53


I treally is a most excellent piece of coding, yoiu have made loads of friends at the Animation and Production Club at my grammar school (enlgish high school) man....kudos, kudos in deed...lol

Response to I've made a jumping engine for all. 2005-08-17 12:19:11


At 8/17/05 12:17 PM, Mr_Defusion wrote: I treally is a most excellent piece of coding, yoiu have made loads of friends at the Animation and Production Club at my grammar school (enlgish high school) man....kudos, kudos in deed...lol

Hehe, no problem, man. Actionscripting's what I do.

Response to I've made a jumping engine for all. 2005-08-17 12:23:44


At 8/17/05 12:19 PM, Rystic wrote:
At 8/17/05 12:17 PM, Mr_Defusion wrote: I treally is a most excellent piece of coding, yoiu have made loads of friends at the Animation and Production Club at my grammar school (enlgish high school) man....kudos, kudos in deed...lol
Hehe, no problem, man. Actionscripting's what I do.

AS is what i do too, but i usually prefer to write my own stuff. I'm making a game with gamecubeicle, and he originally used your engine, but there were some bugs with it when he tried to add some of his own stuff. He came to me for minor help fixing a small bug and I ended up re-scripting his entire engine. (getting me a co-author position when he finishes it)

So anyone having trouble with a game contace AIM KingGoboWoboFaun and I'll be glad to help.

Response to I've made a jumping engine for all. 2005-08-17 12:34:08


I'm surprised Gamecubicle didn't ask me for help, seeing as I wrote the engine..

Anyway, the same goes for me. Anyone having trouble with actionscript is free to e-mail or IM me for help. My e-mail is:

Rystic_Force@hotmail.com

Response to I've made a jumping engine for all. 2005-08-19 10:14:33


Hello, it is me again. I am just wondering if you have the code for your engine so that when you release space you stop jumping. I remember seeing it somewhere before, cant remember for the life of me where though. Just hoping you can help.
If you can, I thank of you greatly.
If not I still thank you greatly for the rest of the code.
~FFKing~

Response to I've made a jumping engine for all. 2005-09-01 18:03:04


At 7/4/05 01:04 PM, DashDingo wrote: For some reason it doesnt work for me :( the guy just falls right through the block as soon as I test it.

i kno, wen i test it, it wrks for a while then falls

Response to I've made a jumping engine for all. 2005-09-06 21:10:55


Yeah, I was upset at the bouncing too.... so I modded it into this. Everyone give 2 shouts for key listeners. This code goes in your "circle" or hero or whatever. The block code stays the same.

onClipEvent (load) {
fall = false;
_name = "circle";
jump = 0;
speed = 4;
jumpheight = 14;
maxfall = -54;

jumplistener = new Object();
jumplistener.onKeyDown = function(){
if (Key.getCode() == 32){
if(!canjump && fall == false && jump == undefined){
fall = true;
jump = jumpheight;
canjump = true
}// End IF Statement
}// End onKeyDown Function
}

jumplistener.onKeyUp = function(){
if (Key.getCode() == 32){
canjump = false
}// End IF Statement
}// End onKeyUp Function
Key.addListener(jumplistener);
}

onClipEvent (enterFrame) {

if (Key.isDown(Key.LEFT)) {
this._x -= speed;
}
if (Key.isDown(Key.RIGHT)) {
_x += speed;
}

xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;

if (jump<>undefined) {
if (jump>maxfall) {
jump--;
}
_y -= jump;
}

}

Response to I've made a jumping engine for all. 2005-10-09 04:35:34


At 10/9/05 04:30 AM, Pinkasaurus wrote: Please

Well, you're using onClipEvent (load). That only checks for hitTest the moment the object come onto screen, and then never again. Change it to:
onClipEvent (enterFrame) {
if (character.hitTest(finish)) {
_root.gotoAndPlay(2);
}
}

Which checks for hitTest on every frame.


BBS Signature

Response to I've made a jumping engine for all. 2005-10-17 11:00:03


The problem with this code is that your calling the clip 'character'. The clip always renames itself 'circle' so it'll work with the blocks. That's why hitTest fails. Also, use enterFrame instead of load.

Response to I've made a jumping engine for all. 2005-10-17 11:02:33


At 10/17/05 11:00 AM, Rystic wrote: The problem with this code is that your calling the clip 'character'. The clip always renames itself 'circle' so it'll work with the blocks. That's why hitTest fails. Also, use enterFrame instead of load.

_name is one of my favourite properties in Flash, God bless it.

if(_name!="Original"){
//actions;
}

Or.. whatever.


Sup, bitches :)

BBS Signature

Response to I've made a jumping engine for all. 2005-10-17 11:54:03


Hook me up with an fla file.

Response to I've made a jumping engine for all. 2005-10-17 11:56:01


Send it to my e-mail. I can do some very nice animation.

Response to I've made a jumping engine for all. 2005-10-17 11:57:34


I've got mad skillz still. So drop me a fla and I'll fill in the gaps if you've got any concepts...tell me.

Response to I've made a jumping engine for all. 2005-10-17 11:58:56


I'm gonna try out some of this code and come back to ya'll with something high great.
WWH.

Response to I've made a jumping engine for all. 2005-10-17 12:26:31


Need some help with a other AS. Its for a platformer.
The characters flying when you press the jump button.

Whats wrong?

The Characters AS:

onClipEvent (load) {
gravity = 10;
walkSpeed = 6;
maxJump = 4;
scale = _xscale;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
_xscale = -scale;
_x -= walkSpeed;
this.gotoAndStop(2);
}
if (Key.isDown(Key.RIGHT)) {
_xscale = +scale;
_x += walkSpeed;
this.gotoAndStop(2);
}
if (air == true) {
_y += gravity;
state = 3;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(Key.UP) && jump == true) {
_y -= jumpSpeed;
gotoAndStop(3);
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(Key.UP)) {
jumpcount += 1;
this.gotoAndStop(3);
}
if (jumpcount>maxjump && jumpSpeed>-2) {
jumpSpeed -= 2;
}
}
onClipEvent (keyUp) {
this.gotoAndStop(1);
walkSpeed = 6;
}
onClipEvent (enterFrame) {
if (this._x>=550) {
this._x = 545;
}
if (this._x<=10) {
this._x = 15;
}
}

Response to I've made a jumping engine for all. 2005-10-17 12:45:45


At 10/17/05 11:54 AM, Destroya wrote: Hook me up with an fla file.

Need an e-mail address.

Response to I've made a jumping engine for all. 2005-10-17 12:48:41


At 10/17/05 12:26 PM, Tactical_Death wrote: Need some help with a other AS. Its for a platformer.
The characters flying when you press the jump button.

Whats wrong?

I'll need to see the .fla to fix the problem.

Response to I've made a jumping engine for all. 2005-11-02 14:54:39


Thanks for the engine. It saved me and my game that is in process. You must be a genius to make this game at age 15.

Response to I've made a jumping engine for all. 2005-11-13 00:21:16


Jesus, it's good to see this thread is still alive after all these months.

Great job, Rystic.


I used to be relevant.

Response to I've made a jumping engine for all. 2005-11-19 22:39:01


Whenever i jump from somewhere to the ground it goes past the ground. Here is an Example .

Response to I've made a jumping engine for all. 2005-11-24 03:45:24


YAYYYY!!!!!!!!!!!!!!!!!!!!!!!www.websiteis
tmeanttobefound.com

Response to I've made a jumping engine for all. 2005-11-28 03:07:03


At 11/19/05 10:39 PM, marioman78 wrote: Whenever i jump from somewhere to the ground it goes past the ground. Here is an Example .

you should raise the maxFall in the script

Response to I've made a jumping engine for all. 2005-12-16 21:17:30


Bumping ebvcause of how useful this was to me.!

Response to I've made a jumping engine for all. 2005-12-21 12:00:09


i cant do it :'(

i made a a circle made it a movie clip and put the actionscript in.

same with the block

i made a a ground made of a big block.

my circle just falls right through!!! in to the ground it goes never to be seen again

:'(


BBS Signature

Response to I've made a jumping engine for all. 2005-12-21 12:04:07


whoops did i menstoon i use flash mx 2004 proffestional


BBS Signature