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.
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
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; }
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.
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.
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?
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.
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?
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.
(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.
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.
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.
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
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.
/* 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.*/
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?
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:
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! 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.
stickmaker10111 3 months ago
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
pokemonhacker01 7 months ago
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.
neilriajayri 8 months ago
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?
xFDtLx 10 months ago
Thanks, I am making a game for my website. This will come in handy. SUBBED!
Unlikeygamer 1 year ago
if you change the speed to 20, the tutorial looks better.
tangrowthuniversal 1 year ago
Your voice sounds different from other tuts on the past XD
HalloWatcher009 1 year ago
how is this a rpg
crazysonyXya 1 year ago
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
YoshiJumper 2 years ago
can you do this in AS3?
LEVENTEVAD10 2 years ago
@LEVENTEVAD10 no
koekje00005 1 year ago
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;
}
}
arnold30303 2 years ago
arnold30303 2 years ago
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;
}
arnold30303 2 years ago
arnold30303 2 years ago
Comment removed
arnold30303 2 years ago
how can i do like walls i can't go through???
MrAbbe800 2 years ago
The link is broken :(
ACFan120 2 years ago
Unreal gravity, bad function
DronElektron 2 years ago
wow... this helps me alot in may thesis.... nice.... ^^
edpinel71 2 years ago
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
HaLO3gamer91 2 years ago
you probably missed putting the ground an instance name (in properties, with the ground selected, you just type the name for your ground)
Ruluk 2 years ago
it just continually falls up
HaLO3gamer91 2 years ago
your bad at recording audio. That key punching is fucking annoying also along with you voice and extra sounds in the background..
Jacory069 2 years ago
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.
MrFreeStufff 2 years ago
where do you learn the codes?
benjoandrichie 2 years ago
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.
SoarKrieg 2 years ago
where do u download this?
KenteousAwe 2 years ago
THANKS!!!
WASApeoplz 2 years ago
this fucking video dosnt help me at all!
put that script normaly in discription JESUS!!!!!!
DJLiberity 2 years ago
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?
Shou2061 2 years ago
mine does the same thing, but mine goes more than three times -.-
possumspwn 2 years ago
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.
Senakujin 2 years ago
The link in the description isn't working. Could you post the code?
MarukashiX 3 years ago
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
Veln43 3 years ago
i cant open the source files can someone past it in coments for me cheers
fgdfhtrhg 3 years ago
thanx! i've been looking for ages for a tut like this
it's brill :)
fgdfhtrhg 3 years ago
put here the actionscript please
knif30flam3 3 years ago
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?
Dilqn4ence 3 years ago
This has been flagged as spam show
Dilqn4ence 3 years ago
did you name the ground "ground"? I don't think he mentioned that in the tutorial, and that may be the problem
possumspwn 3 years ago
i got confused...
xflamingpenguinx 3 years ago
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?
isaacureta 3 years ago
LOOK, CLICK THE LINK IN DESCRIPTION!
Smazafle 3 years ago
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
hellmaxterr12 3 years ago
yes it helped!!!
clayerox5 3 years ago
is there a way to make it so your "camera" follows your character within like 35 - 55 pixles ??????????
naruto7pivot7dude 3 years ago
thats what i wanna know :)
clayerox5 3 years ago
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
charizard0609 3 years ago
tnank you so much ur the best
animation7king 3 years ago
just make the ground a whole symbol and instance name ground or u could do the same data and put ground 2
Renkay141 3 years ago 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
TUBRONATORX 3 years ago
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)
Renkay141 3 years ago
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...
blockdrogon 3 years ago
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.
blockdrogon 3 years ago
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.
blockdrogon 3 years ago
very cool. It good to know that people have started with my tutorials and gone way beyond what I tought. Good for you.
pbj746 3 years ago
oh srry, am i beyond you yet, or just beyond ur tuts? ty btw
blockdrogon 3 years ago
just beyond the tuts. I've been trying to figure out a good way to explain game saving and what not. and your welcome
pbj746 3 years ago
Well no offense, but can you think of a way to explain things like saving and slopes?
blockdrogon 3 years ago
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.
TsunToBeBoss 3 years ago
btw this is blockdrogon. In case you have no idea who is replying to you.
TsunToBeBoss 3 years ago
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! :)
fgdfhtrhg 3 years ago
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.
blockdrogon 3 years ago
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.
blockdrogon 3 years ago
Tahnks man
Manifest222 3 years ago
how do u add more ground pieces, just add more then call them all ground in the instance box?
BFG12043 3 years ago
how do you make the ground hard???? so he can walk on it???
jzm501 3 years ago
simple, give it an instance "Ground"
tonyarch 3 years ago
ground, case sensitive
reallylamevideos 3 years ago
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?
Wal2lock 3 years ago
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.
Wal2lock 3 years ago
will you post all the scrip because mine all ways say these a error
superkrt 3 years ago
dsgamez: make your regestration point at the bottom of the character
gokusuper777: its not a code. you just add more platforms in the movieclip.
weasley64 3 years ago
wat do u do if u want to add more platforms? like wat is the code for that?
GokuSuper777 3 years ago
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?
dsgamez 3 years ago
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
dsgamez 3 years ago
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!
regor01 3 years ago
LOOK AT THE ABOUT THIS VID SECTION!!!! IT HAS A LINK
srry 4 the caps ^-^
TomatoFilmsv1 3 years ago
look at info
djdawkins36 3 years ago
wut is the symbol beside falling=false? It looks different than the one next to jumping=false.
regor01 3 years ago
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; }
RobertTH9 3 years ago
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
FreakOFlash 3 years ago
Can someone post the script for 6:08, myn keeps on getting errors
looloo121 3 years ago
Thanks !
diedy5 3 years ago
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; }
Nemesolo 3 years ago
can you make a TUT on how to make a portal?
2sauber2 3 years ago 2
my head hurts after all that...
flashman700 3 years ago
dude can som1 give me the first code u put in cuz i keep on getting it wrong
lolpiggy2 4 years ago
ready the discription or something
the lower link for all the codes ...
dsgamez 3 years ago
read*
dsgamez 3 years ago
dude on the link for the code if you put it in you jus fall through the floor
surfaceradio 4 years ago
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
FlashDuDe33 4 years ago
sweet thanx
ACFan120 3 years ago
no problem ^_^
FlashDuDe33 3 years ago
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
}
blockdrogon 3 years ago
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.
blockdrogon 3 years ago
wallus11..check "about this video" there is the Link to source code
pipisopo 4 years ago
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
Wallus11 4 years ago
dude when ever i make the ground my character goes in it and lands at the bottom of the gound
xaznrocker 4 years ago
i can make scrolling backgrounds wit this :D
StickFLashGameS 4 years ago
HOW
rockonfreakybro12 4 years ago
put the registration point, at te bottom
rockonfreakybro12 4 years ago
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?
Drinkie90 4 years ago
post the code
pivotemperor 4 years ago
how can i get the ground effect so he dont fall through?
StickFLashGameS 4 years ago
thnk u thnk u so much dude! the code works for me :D
StickFLashGameS 4 years ago
dude, u r awesome!, idunno where i'd be if i hadnt had ur help wit flash :P thx man :D
StickFLashGameS 4 years ago
looking somewhere else on the net, that's where i'd be!
cliffordex 4 years ago
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!
lepjesland 4 years ago
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 ^^
dsgamez 4 years ago
can you please post the code!!!
timpalimpa32 4 years ago
how to make other surfaces?
hallemx 4 years ago
/* 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.*/
guildwarsfan2021 4 years ago
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
stickpwnagez 4 years ago
You have to give it an instance name called "ground"
PJJMDCC 4 years ago
i have figured it out :P
stickpwnagez 4 years ago
does the instance name ALWAYS have to be ground to stop it falling threw?
vmistry94 4 years ago
No...you can make it any name until you change the script of ground to the name you gave it
PJJMDCC 4 years ago
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.
blockdrogon 4 years ago
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
blockdrogon 4 years ago
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?
blockdrogon 4 years ago
check the grounds instnce name
it shoild be "ground" without quotes
and the chars instance name has to be ball
FlashDuDe33 3 years ago
oops, I mean if jumping ISN'T already true,
sorry that one comment turned into three!
Luther92 4 years ago
This has been flagged as spam show
Very nice sugestoins Luther
pbj746 4 years ago
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(); }
Luther92 4 years ago
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):
Luther92 4 years ago
Great Tutorial, The RPG Game is definitely starting to look good. 5*
4YourGamez 4 years ago
FIRST
Shanto420 4 years ago