Added: 4 years ago
From: pbj746
Views: 16,729
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (127)

Sign In or Sign Up now to post a comment!
  • Great! Now. You need to figure out how people cannot jump and go into zig-zags. Like you can jump left and start falling down the jump back a few spaces. like a giant 0.

  • Dude, liked ur RPG tuts but this vid. The link does not work at all! Could you put the source code in the description? :D

  • i have a really big glitch:

    when you start the movieclip and get on the ground, you can walk, not jump right off of the edge of the ground without falling.

  • you are most likely not active on this user anymore... but ill ask anyways...

    problem:

    the ball glitches inside the ground object instead of staying on top of it, sometimes its up on top, and sometimes it almost falls out the bottom...

    how can this be fixed?

  • Thanks, I am making a game for my website. This will come in handy. SUBBED!

  • if you change the speed to 20, the tutorial looks better.

  • Your voice sounds different from other tuts on the past XD

  • how is this a rpg

  • how would i make it to where it showed an pic or animation when he jumped, then that same pic while he was jumping left or right and not the animation for walking left or right

  • can you do this in AS3?

  • Here is last part of my action script for ball:

    if(!_root.ground.hitTest(this. _x, this._y, true) && falling){

    jump=20;

    falling=false;

    jumping=false;

    }

    }

  • here is part3 of my action script for ball: if(jump<-15){ jump=-15; } } if(Key.isDown(Key.LEFT)){ _x-=speed; } if(Key.isDown(Key.RIGHT)){ _x+=speed; }
  • here is part 2 of my action script for ball:

    if(Key.isDown(Key.SPACE) && jumping==false) {

    jumping=true;

    }

    if(jumping){

    this._y-=jump;

    jump-=.5;

    if(jump<0){

    falling=true;

    }

  • here is the part1 of my action script for ball: onClipEvent(load){ falling=false; hitting=false; gravity=7; speed=6; jump=0; jumping=false; } onClipEvent(enterFrame) { if(!_root.ground.hitTest(this. _x, this._y, true) && !jumping) { _y+=gravity; gravity=7; falling=true; }
  • Comment removed

  • how can i do like walls i can't go through???

  • The link is broken :(

  • Unreal gravity, bad function

  • wow... this helps me alot in may thesis.... nice.... ^^

  • i type everything the same and it doesn't work. why doesn't it work?

    HOW THE FUCK DOES IT WORK?

    it just continuously falls down

    after it goes through the ground

  • you probably missed putting the ground an instance name (in properties, with the ground selected, you just type the name for your ground)

  • it just continually falls up

  • your bad at recording audio. That key punching is fucking annoying also along with you voice and extra sounds in the background..

  • Jesus, how do you guys expect to make a flash game just by copying and pasting codes. You need to LEARN these codes, which is what real flash developers do. If you expect to dick ride other people's codes to make a successful game then you're completely mistaken.

  • where do you learn the codes?

  • You'd save everyone a lotta time by just, ya know, postin' the codes in the description box. And uh, they don't work for me, by the way. I did everythin' right, but I used a sprite instead of a drawing, and it sank under the ground.

  • where do u download this?

  • THANKS!!!

  • this fucking video dosnt help me at all!

    put that script normaly in discription JESUS!!!!!!

  • Everything was perfect for me except one thing. When I first jump, I fall slightly below the ground. The second time I jump, I fall even further. The third time I jump, I fall to the top of the ground, like I should. It restarts from there. Math problem?

  • mine does the same thing, but mine goes more than three times -.-

  • This is because the gravity (rate at which y drops) is increased exponentially, and depending on when the player hits the landing brick the speed is different. "COLLISION" dose not account for this difference, collision is simply two overlapping frames, how much they overlap is dependent on how fast the player is going before they hit the platform and collision becomes true.

  • The link in the description isn't working. Could you post the code?

  • Jeeze......After copying the script from the video it took me an hour of revising just to finnaly get it to work...

    But thinks for the tut though

  • i cant open the source files can someone past it in coments for me cheers

  • thanx! i've been looking for ages for a tut like this

    it's brill :)

  • put here the actionscript please

  • Hey, can someone help me? Everithing I did is like in the video, but when I jump I fall through the floor. Any ideas why?

  • did you name the ground "ground"? I don't think he mentioned that in the tutorial, and that may be the problem

  • i got confused...

  • this its not a tutorial ,pbj stupid asshole

    -.-" ,you are just bragging beacause its a long script and you dont even put on the video info.

    soo please can you give the script?

  • LOOK, CLICK THE LINK IN DESCRIPTION!

  • mann

    la haces un chigno

    estoy parendiendo de tus videos

    y ojala algun dia en el futuro

    nos recuerden por nuestros juegso en flash xDD

  • yes it helped!!!

  • is there a way to make it so your "camera" follows your character within like 35 - 55 pixles ??????????

  • thats what i wanna know :)

  • put a new layer and make walls at edges of the screen so that if you touch it the back ground will scroll that direction

  • tnank you so much ur the best

  • just make the ground a whole symbol and instance name ground or u could do the same data and put ground 2

  • hey this works fine and all for my first map, but then when i make my second map my character falls thru the floor, the instance name is ground btw, and all codes are fine (Works fine on first map) how can i fix this?

    thanks

  • put intance name of the ground in 2nd level

    gorund

    same thing as the other one if it doesn't work...I don't know(It works for me in my 2nd level)

  • and 3rd person view is bad tool cuz the the way im determining these things positions is a replacement variable for _x, _y is x, y, and of course z. and i need to make things rotate a _x point of an object but it didnt seem to work with just x, i guess ill try do testEnemy._x again...

  • I'm sorry to bother you again, but a thought came to mind, I'm having a hard time with the way I'm trying to make saving, but is your way of saving the shared Object stuff. I have been trying to work it out but I can't, and when you say just  beyond the tuts does that mean you have a z axis as well, honestly rotation is hard when i tell things to rotate around its self it would appear the point it rotates around is a bit above it and some what in front of it.

  • Not to mention I've even made a following AI for a test figure on the z axis as well, and trust me, it wasn't easy either. I am now trying to make the shooting work, I don't have a gun, but I'm trying to at least get the bullet work, cuz honestly I can't draw the 3d things I want, too much money for the program I need. I really still wanna make this online compatable so when I finish the game I can make it multi-player, who knows, maybe even a mmorpg, but flash might not be able to take it T_T.

  • very cool. It good to know that people have started with my tutorials and gone way beyond what I tought. Good for you.

  • oh srry, am i beyond you yet, or just beyond ur tuts? ty btw

  • just beyond the tuts. I've been trying to figure out a good way to explain game saving and what not. and your welcome

  • Well no offense, but can you think of a way to explain things like saving and slopes?

  • Hey pbj, I resolved both the saving

    problem (excellently)and the slope problem

    (somewhat), but the saving/loading is excellent really.

    I found out how to do shared objects 3 days ago, and took it to a

    diverse lvl in just 2 days, I already have a load screen that can tell whether or not you made a save.

    I have 10 different saves to choose from and a way of detecting if you have saved in the save window to. And if you have a save on the selected save file, it will give you an overwrite option.

  • btw this is blockdrogon. In case you have no idea who is replying to you.

  • hey pbj746 can you make the stage follow char so it doesn't show whats coming... if you know what i mean, cheers great tut! :)

  • But so far I have made, or at least all the things that I didn't learn here. for the 2d effects I've made, bullets, attacking animations, walking animations, even a walking animation when the enemy stick guy is following me XD. And as stated before it would seem I made 3d to, yup yup yup, I have successfully made a z axis, a camera which can move around and rotate, which means first person view. It can rotate left and right, up and down, and I can move back and forth though w/e rotation im at.

  • this comment is directed to Pbj if he ever looks at this vid again. well... ahem... Ha ha, certainly seems like "Student surpassing master" cause I've taken this flash game making stuff way farther then your tuts, not that they didnt help, they were my starting tuts. But i've really gotten far, i havent made any actual games yet, but thats cuz i dont think i got everything found out that I need, like saving/loading, duplicating might be a prob still, altho i havent directed much attention to it.

  • Tahnks man

  • how do u add more ground pieces, just add more then call them all ground in the instance box?

  • how do you make the ground hard???? so he can walk on it???

  • simple, give it an instance "Ground"

  • ground, case sensitive

  • I got an issue when I move the registration point on my ball down so it will land on top of the platform the ball moves like a wave up and down so basically rotates around the point I lowered I'm presuming, any ideas how I would resolve this?

  • I figured it out, I added a rotation to my ball because it has graphics on it, so I wanted it to rotate while the left and right buttons are pressed.

    this._rotation -= 20;

    this._rotation += 20;

    but I cant add this if my ball has it registration point at the bottom because then the ball doesn't move in a straight line but like a wave any ideas how I could have the two together.

  • will you post all the scrip because mine all ways say these a error

  • dsgamez: make your regestration point at the bottom of the character

    gokusuper777: its not a code. you just add more platforms in the movieclip.

  • wat do u do if u want to add more platforms? like wat is the code for that?

  • hmm I have a little problem here

    I tried to create a larger character zo it could look abit better but now it will go trough the ground for like 50% of its body ..

    How can I fix this?

  • I'd recommend you guys do the following:

    Change the speed to 2 or something

    and put ur frame rate to 60 or 50

    It wont be all so .. low fps rated xD

  • hey pbj746 plz write the whole gravity code into a comment because

    1=I found it very complicated

    2=some symbols I don't know wut they are

    3=I have like 20 errors each time.

    Please just put the code here!

  • LOOK AT THE ABOUT THIS VID SECTION!!!! IT HAS A LINK

    srry 4 the caps ^-^

  • look at info

  • wut is the symbol beside falling=false? It looks different than the one next to jumping=false.

  • onClipEvent(load) { falling=false; hitting=false; gravity=7; speed=6; jump=0; jumping=false;

    }

    onClipEvent(enterFrame) { if(!_root.ground.hitTest(this.­_x, this._y, true) && !jumping) { _y+=gravity; gravity=7; falling=true; }

  • huh... could u send me the code that was REALLY confusing i've seen ur other tutorials and there great but u skipped a HUGE part could u reply me the enter tutorial

  • Can someone post the script for 6:08, myn keeps on getting errors

  • Thanks !

  • onClipEvent(load) { jumping=false; falling=false; gravity=6; jump=0; speed=7;

    }

    onClipEvent(enterFrame) { if(!_root.ground.hitTest(this.­_x, this._y, true) && !jumping) { _y+=gravity;

     } if(Key.isDown(Key.SPACE) && jumping==false) { jumping=true; }

  • can you make a TUT on how to make a portal?

  • my head hurts after all that...

  • dude can som1 give me the first code u put in cuz i keep on getting it wrong

  • ready the discription or something

    the lower link for all the codes ...

  • read*

  • dude on the link for the code if you put it in you jus fall through the floor

  • ok heres how

    first make the 3 blocks for ground or w.e

    then use the select tool drag it over all 3

    richt click, convert them all to 1 movie clip

    call it ground

    registration point: middle

    then, click on it, and give it the instance name of : ground

    now it should work =D

  • sweet thanx

  • no problem ^_^

  • Oh snap, I'm sorry, I forgot to post that I had already found that out a long time ago. And I have gotten farther than what these tutorials pbj's made, Hell! I just found out the answer to how to make my characters limbs move and not leave Frame 1. And the answer was so simple. Just gotta double click a movieclip you make and give them frames of there own, just type something like...

    if(Key.isDown(Key.RIGHT)) {

    _root.char.play();

    just type w/e thing ur using for moving long the axis here

    }

  • oh yea... dont forget to type the stop action on the first frame of the movieclip or it will just keep playing over and over by its self. oh and ive added accelerated movement and a moving background.

    The accelerated movement as you might have guessed is that you get faster speed as u hold the key. and when u let go u start deccelarating.

  • wallus11..check "about this video" there is the Link to source code

  • Ey can someone help me whit this... I mean send me the action scripts... cant see what he writes on the screen.. Please help me...

    Would be nice if I could do gravity.. make a comment here and give it to me or send it to me personaly

  • dude when ever i make the ground my character goes in it and lands at the bottom of the gound

  • i can make scrolling backgrounds wit this :D

  • HOW

  • put the registration point, at te bottom

  • what should i do to make the ball stay on some other "ground"- boxes I draw? (so that he can jump up on another "ground"-box)

    I don't get it, so what to do?

  • post the code

  • how can i get the ground effect so he dont fall through?

  • thnk u thnk u so much dude! the code works for me :D

  • dude, u r awesome!, idunno where i'd be if i hadnt had ur help wit flash :P thx man :D

  • looking somewhere else on the net, that's where i'd be!

  • ok,, everybody pay attention:

    I know some of you want to have more than 1 ground were the ball can stay on..

    well I figured it out..

    make like 4 rectangles.. and select them all

    now convert to movie clip and save ass ground

    fill ass instance name ground..

    and voila!

    the ball can go on all grounds!

  • I Favorited part 1,2,3,4,5 and 6

    I wonder .. are there more parts? XD

    I just got the full version of:

    Macromeda Flash CS3 Pro. or something :P

    So I want to create my own flash game ;)

    Thnx in advance ^^

  • can you please post the code!!!

  • how to make other surfaces?

  • /* to stop falling thru other "grounds" delete ALL grounds but the original ground. then double left click that ground and NOW add more in there.

    also if you want the script for this please send me a message or check my profile. i'm gunna try to upload the script to my profile if it allows me to.*/

  • i got the code, but the char is just falling trough the ground. please help! does the ground need a code? by the way. i subscripe you

  • You have to give it an instance name called "ground"

  • i have figured it out :P

  • does the instance name ALWAYS have to be ground to stop it falling threw?

  • No...you can make it any name until you change the script of ground to the name you gave it

  • sorry for this third comment. But since I was never able to make a solid ground that he could land on I decided to delete the gravity parts(I even made a new document). But for what ever reason It keeps on acting like I still have gravity in and it still makes me fall. Even though I only have in what was in the jumping and movement tutorial.

  • And no I do not get synax errors for what I have typed in. I make the rectangle with no out line and just fill, and I make the character and I have every thing you have typed in, as I said no synax errors and yet I still fall right through the rectangle. And yes I name it ground and give it instance name of ground and I have it on movie clip center dot. And I have the char on Bottom center dot

  • I don't get it. I type in everything you do in tutorial and my char still falls through the ground. Is there anything you do different to the ground than I do?

  • check the grounds instnce name

    it shoild be "ground" without quotes

    and the chars instance name has to be ball

  • oops, I mean if jumping ISN'T already true,

    sorry that one comment turned into three!

  • so change that code to the below code.I just added "falling=false" so this,along with the other code says that jumping is only possible if jumping is already true, and if the character isn't falling:

    if(Key.isDown(Key.SPACE) && jumping==false && falling==false) {

     jumping=true; luigi.play(); }

  • Another good tutorial, a little something should be added to the code though. In your jumping code you have:

    if(Key.isDown(Key.SPACE) && jumping==false) { jumping=true;

     luigi.play();

    }

    but this allows the character to fall off of a platform, and jump while falling. It is ok but for anyone who wants the character to only be able to jump from the ground add this code(in a new comment):

  • Great Tutorial, The RPG Game is definitely starting to look good. 5*

  • FIRST

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more