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

(29,512 views • 373 replies)

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

<< < > >>
None

Rystic

Reply To Post Reply & Quote

Posted at: 7/2/05 01:30 PM

Rystic LIGHT LEVEL 50

Sign-Up: 03/09/02

Posts: 956

They're a disgrace to hard-working actionscripters everywhere.

Remember, the point of this engine isn't to BE the game... it's to start you off. I don't want people spamming the portal with 2-minute side scrollers because of this code.


None

DashDingo

Reply To Post Reply & Quote

Posted at: 7/4/05 01:04 PM

DashDingo EVIL LEVEL 15

Sign-Up: 06/25/04

Posts: 5,155

For some reason it doesnt work for me :( the guy just falls right through the block as soon as I test it.

BBS Signature

None

FFKing

Reply To Post Reply & Quote

Posted at: 7/7/05 03:43 PM

FFKing EVIL LEVEL 06

Sign-Up: 12/13/03

Posts: 358

I found messing around with the maxfall variable stopped my guy from falling thru. (Mine was 10 and i had three platofrms, he fell off the 1st and landed ok, but the other two he went thru the floor). My guy is 25x25, movespeed of 5, maxfall of 8.

I do reccommend trying the altering of the maxfall var. It worked for me. I find about character height devided by 3 works quite well, but thats for me.

hope this can help anyone


None

expired4postlimit

Reply To Post Reply & Quote

Posted at: 7/18/05 04:10 PM

expired4postlimit LIGHT LEVEL 05

Sign-Up: 08/28/04

Posts: 717

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.

BBS Signature

Happy

danara

Reply To Post Reply & Quote

Posted at: 7/31/05 05:22 PM

danara NEUTRAL LEVEL 03

Sign-Up: 07/30/05

Posts: 6

i like that platformer thing its handy


None

Cat3300

Reply To Post Reply & Quote

Posted at: 8/2/05 01:41 PM

Cat3300 NEUTRAL LEVEL 04

Sign-Up: 07/31/05

Posts: 44

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


None

DarkShovel

Reply To Post Reply & Quote

Posted at: 8/2/05 04:47 PM

DarkShovel NEUTRAL LEVEL 07

Sign-Up: 07/29/05

Posts: 25

can some one send me a good game engine/


None

shatterspike1

Reply To Post Reply & Quote

Posted at: 8/3/05 08:10 PM

shatterspike1 LIGHT LEVEL 13

Sign-Up: 03/24/05

Posts: 721

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


None

Rystic

Reply To Post Reply & Quote

Posted at: 8/17/05 12:06 PM

Rystic LIGHT LEVEL 50

Sign-Up: 03/09/02

Posts: 956

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.


None

Rystic

Reply To Post Reply & Quote

Posted at: 8/17/05 12:08 PM

Rystic LIGHT LEVEL 50

Sign-Up: 03/09/02

Posts: 956

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.


Happy

Mr-Defusion

Reply To Post Reply & Quote

Posted at: 8/17/05 12:17 PM

Mr-Defusion LIGHT LEVEL 02

Sign-Up: 07/06/05

Posts: 1

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


None

Rystic

Reply To Post Reply & Quote

Posted at: 8/17/05 12:19 PM

Rystic LIGHT LEVEL 50

Sign-Up: 03/09/02

Posts: 956

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.


None

Glaiel-Gamer

Reply To Post Reply & Quote

Posted at: 8/17/05 12:23 PM

Glaiel-Gamer NEUTRAL LEVEL 27

Sign-Up: 12/28/04

Posts: 8,030

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.


None

Rystic

Reply To Post Reply & Quote

Posted at: 8/17/05 12:34 PM

Rystic LIGHT LEVEL 50

Sign-Up: 03/09/02

Posts: 956

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


None

FFKing

Reply To Post Reply & Quote

Posted at: 8/19/05 10:14 AM

FFKing EVIL LEVEL 06

Sign-Up: 12/13/03

Posts: 358

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~


None

harman-dragon

Reply To Post Reply & Quote

Posted at: 9/1/05 06:03 PM

harman-dragon FAB LEVEL 13

Sign-Up: 02/18/03

Posts: 268

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


None

Johnny

Reply To Post Reply & Quote

Posted at: 9/6/05 09:10 PM

Johnny DARK LEVEL 21

Sign-Up: 04/17/04

Posts: 4,351

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

}

All sites currently down. Deal with it. <3

BBS Signature

None

Pinkasaurus

Reply To Post Reply & Quote

Posted at: 10/9/05 04:30 AM

Pinkasaurus FAB LEVEL 27

Sign-Up: 06/24/05

Posts: 3,408

I used Rystic's amazing jumping engine but I cant seem to get hitTest to work with it.

I have a user controlled movie clip called "character" and I have another movie clip called "finish" I have used this code -

onClipEvent (load) {
if (character.hitTest(finish)) {
_root.gotoAndPlay(2);
}
}

I think Im using the right code, but it still does nothing. It doesnt even recognise that the objects are touching. Am I doing something wrong? Any help at all would be really good! Please

BBS Signature

None

Rantzien

Reply To Post Reply & Quote

Posted at: 10/9/05 04:35 AM

Rantzien FAB LEVEL 15

Sign-Up: 01/27/05

Posts: 3,426

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

None

Rystic

Reply To Post Reply & Quote

Posted at: 10/17/05 11:00 AM

Rystic LIGHT LEVEL 50

Sign-Up: 03/09/02

Posts: 956

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.


None

liaaaam

Reply To Post Reply & Quote

Posted at: 10/17/05 11:02 AM

liaaaam NEUTRAL LEVEL 22

Sign-Up: 12/11/04

Posts: 14,501

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.


None

Destroya

Reply To Post Reply & Quote

Posted at: 10/17/05 11:54 AM

Destroya EVIL LEVEL 10

Sign-Up: 04/05/04

Posts: 361

Hook me up with an fla file.


None

Destroya

Reply To Post Reply & Quote

Posted at: 10/17/05 11:56 AM

Destroya EVIL LEVEL 10

Sign-Up: 04/05/04

Posts: 361

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


None

Destroya

Reply To Post Reply & Quote

Posted at: 10/17/05 11:57 AM

Destroya EVIL LEVEL 10

Sign-Up: 04/05/04

Posts: 361

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.


None

Destroya

Reply To Post Reply & Quote

Posted at: 10/17/05 11:58 AM

Destroya EVIL LEVEL 10

Sign-Up: 04/05/04

Posts: 361

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


None

Plusle

Reply To Post Reply & Quote

Posted at: 10/17/05 12:26 PM

Plusle LIGHT LEVEL 02

Sign-Up: 08/28/05

Posts: 87

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


None

Rystic

Reply To Post Reply & Quote

Posted at: 10/17/05 12:45 PM

Rystic LIGHT LEVEL 50

Sign-Up: 03/09/02

Posts: 956

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

Need an e-mail address.


None

Rystic

Reply To Post Reply & Quote

Posted at: 10/17/05 12:48 PM

Rystic LIGHT LEVEL 50

Sign-Up: 03/09/02

Posts: 956

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.


Thinking

hbomb

Reply To Post Reply & Quote

Posted at: 10/29/05 05:38 AM

hbomb NEUTRAL LEVEL 09

Sign-Up: 05/13/05

Posts: 148

I first found Rystic's script for this engine in ultimate tutorial2. When i tried it out it wouldn't work, but i downloaded the example and lernt how to do it. It is good, however, does anyone have a script that makes your character look as if it's walking and make it turn around and walk the other way when you push left? I'm making an actionscript tutorial, so it has to work, or else my first movie will get bad ratings. I've checked everywhere, so i just hope someone will reply....


Happy

WarSyndicate

Reply To Post Reply & Quote

Posted at: 11/2/05 02:54 PM

WarSyndicate NEUTRAL LEVEL 11

Sign-Up: 08/25/05

Posts: 660

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.


All times are Eastern Standard Time (GMT -5) | Current Time: 08:25 PM

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