For those of you wondering how he got his character to rotate, see 7:40 of the video. The piece of code that does this is Line 66 under the Right Key is down condition (player_mc.scaleX=1;) and Line 71 under the Left Key is down condition (player_mc.scaleX=-1;) in his coding. You may have to change the value of 1 to work with your character otherwise it will appear warped (I ended up using 2 and -2 accordingly). Hope this clears up the confusion for some people.
If u wanna try a cool flash platformer i made (flash as3), try it out here: tinyurl(dot)com/adventuresOFpudde (yeah cant really post urls on youtube anymore) - i got a video on it on my channel and its a link in the video description aswell
Borris i was wondering How to make a function that restarts the Character when he falls off the "floor" ive looked all over but i just cant seem to figure it out
Hi. When my character Jumps. (I finished off the code you did in this video) It keeps replaying the jumping animation. Is there anyway to make it stop on the last frame after you press the up key?
The reason it has the 'canDoubleJump = false' statement in the first jump 'if' is because, somehow, it would double jump the first time the key was kept pressed. -.-
If u use the code I wrote it will double jump more than once in each jump, so instead of using the jumping var, I used two booleans ( firstJump and second Jump)
I can't post the link with the txt in wich I put the code. However, try with the suggestion I gave. It might be enough
thanks for responding, but it didn't work for me. i'll try again though.
i heard you need a variable(boolean) that is "onGround" but still... i cant use it. i dont know where else to put it. im a n00b. i dont want the character to keep bunny hopping. it wont be as good as agame as i want it to be D: . thanks for responding though... :)
Love the tutorials... So what is it that causes your voice to be altered that way? I'm just curious. Medical stuff intrigues me... also I feel like the intro to your videos is a bit heavy-handed.
Just one quick question... i'm using a yggdra sprite for this, but she doesnt flip when she is walking left, but she keeps facing right although she is walking left..
Thx a lot for the tutorials! But I got one problem, I can't make the align thing to work. The ball just "sink" through the floor and you can just the half of it (just as it was before you did the align thing) What is the problem?
Uhm, how do i make my sprite change when he's jumping and keep it on the jumping sprite while he's in the air? [ Ex. Char is jumping - Left or Right is pressed, walk sprite is initiated. ] [ I need : Char is jumping - Left or right is pressed, Jump sprite stays but flips and moves. ]
@Borris123PSN Is there anyway I can have the code for that. I want to get it so my character can't walk while in air, but I'm having a hard time figuring it out from your description. Thanks for these videos and the help!
I just wanted to say that these are good tutorials. I used to program in AS1, but after watching these tutorials I have a much better understanding of how syntax of AS3 works and will hopefully be able to fully switch over to the new Action Script fairly easily. Thanks!
Thats actually really smart! i dont know y i didnt think of that! its nice to see that people i trying new things on there own with the new knowledge the got :)
hey could you perhaps link us to a notepad document with all the code?
Buddaman990 3 days ago
hey i was wondering when you were going to make the second part for this one
nofatchxplzthx 4 days ago
1+0+1+0 = 10 actually...
nofatchxplzthx 4 days ago
Comment removed
nofatchxplzthx 4 days ago
For those of you wondering how he got his character to rotate, see 7:40 of the video. The piece of code that does this is Line 66 under the Right Key is down condition (player_mc.scaleX=1;) and Line 71 under the Left Key is down condition (player_mc.scaleX=-1;) in his coding. You may have to change the value of 1 to work with your character otherwise it will appear warped (I ended up using 2 and -2 accordingly). Hope this clears up the confusion for some people.
DarkSamus993 2 weeks ago
My If and function have purple instead of blue colour, and it seems that If doesnt work cuz I got an error
TheMongwai 3 weeks ago
This has been flagged as spam show
If u wanna try a cool flash platformer i made (flash as3), try it out here: tinyurl(dot)com/adventuresOFpudde (yeah cant really post urls on youtube anymore) - i got a video on it on my channel and its a link in the video description aswell
vegardertilbake1 3 weeks ago
Did you made the character body in flash, or in another program?
999tiaguinho 1 month ago
@999tiaguinho In Flash
Borris123PSN 1 month ago
Borris i was wondering How to make a function that restarts the Character when he falls off the "floor" ive looked all over but i just cant seem to figure it out
-thanks-
MrJlebron 1 month ago in playlist Liked videos
Hi. When my character Jumps. (I finished off the code you did in this video) It keeps replaying the jumping animation. Is there anyway to make it stop on the last frame after you press the up key?
MrMinikk3 2 months ago
@MrMinikk3 on the last frame in the animation, set an action to the frame "stop();"
nofatchxplzthx 4 days ago
how do you make it look in the direction it's moving, also some of the stuff in this you did not show yourself adding them.
RubiixCat 2 months ago
sir, when will you upload the Standing, Running, and Jumping animation Tutorial?
eeboovalle 3 months ago
@eeboovalle Joining your question
MrMareckii91 2 weeks ago
Hi Borris, love your videos!
I was wondering if you could help me with my gotoAndPlay function? It only seems to play the first frame of the animation in the movieclip.
Jawkneechew 3 months ago
@Jawkneechew I mean "gotoAndStop"
Jawkneechew 3 months ago
Do you smoke?
AMrTheAn 3 months ago
Comment removed
GoldenSilence333 4 months ago
@GoldenSilence333 dont be an ass if you watched his 1st vid you'd know hes got a rare sickness
ThEC0Wg0EsM0o 3 months ago
um my player stays the same direction when i press left and right how can i fix this?
punjabiskillz89 4 months ago
awesome! I'm waiting for the second part!
BoyDaMiller 5 months ago in playlist Videos from Borris123PSN
1+1 = 1+1
Bomebermailer 5 months ago
This has been flagged as spam show
luke im your father :D
avni2b1992 6 months ago
could u please get rid of the voice effects its kinda hard to understand u
SMARTASScrew13 6 months ago
Comment removed
elemayostudios 6 months ago
@SMARTASScrew13
he says it's his real voice.
elemayostudios 6 months ago
@elemayostudios really. kinda stuffed up voice. no offence man
SMARTASScrew13 6 months ago
oh man, the next part is what I really need! any chance it'll ever be released?
VegaOmega23 6 months ago
Noooo the tutorial ends here whyyyyy please make more that goes deeper into this.
ramprire 6 months ago
borris, how do you make the jump animation follow through even when you let go of the UpKey, or press the left, or right key? thanks
Riushinn 6 months ago
@Riushinn
If I had to guess, I'd suggest it has something to do with the 6th frame on the layer "Layer 2" in the jumping animation: 5:07
Let's just hope the making of the the animations will come out really, really, really, really soon. I can't wait. :)
3mp0ri0 6 months ago
how do you make it so that if you hold down the up key, it only lets you jump once?
elemayostudios 6 months ago
@elemayostudios
Try this:
if(UpKeyIsDown && canJump)
{ yVelocity = -15; canJump = false; canDoubleJump = false; jumping = true;
}
if(jumping && !UpKeyIsDown)
{ canDoubleJump = true;
}
The reason it has the 'canDoubleJump = false' statement in the first jump 'if' is because, somehow, it would double jump the first time the key was kept pressed. -.-
Anyway, that seemed to work. :)
3mp0ri0 6 months ago
@elemayostudios
If u use the code I wrote it will double jump more than once in each jump, so instead of using the jumping var, I used two booleans ( firstJump and second Jump)
I can't post the link with the txt in wich I put the code. However, try with the suggestion I gave. It might be enough
3mp0ri0 6 months ago
@3mp0ri0
thanks for responding, but it didn't work for me. i'll try again though.
i heard you need a variable(boolean) that is "onGround" but still... i cant use it. i dont know where else to put it. im a n00b. i dont want the character to keep bunny hopping. it wont be as good as agame as i want it to be D: . thanks for responding though... :)
elemayostudios 6 months ago
why can't you put the codes in the description?
BunkeyTheMunkey1 7 months ago
O_O
stickmanfightcool 7 months ago
Borris, do you know if actionscript 3.0 has a step through function?
joshanator1 7 months ago
@joshanator1 I'm not sure what you mean. Do you mean, a function to step through objects? if so, then you will have to make it
Borris123PSN 7 months ago
Any chance you could make the same tutorials with actionscript 3.0?
Trollnumber12 7 months ago
sounds like a devil O_O
not to be mean, but really...
ThePickleBa 8 months ago
AIDS KID DIE
ZersiXs 8 months ago
@TwinsKid001 you should look for tutorial how to read >.>
Konradix05 8 months ago
Comment removed
DAVZONED 8 months ago
Where is the animating tutorial?
TwinsKid001 8 months ago
Cracktuh!
frankenshizzle 9 months ago
luke.. im your father..
avni2b1992 9 months ago
Love the tutorials... So what is it that causes your voice to be altered that way? I'm just curious. Medical stuff intrigues me... also I feel like the intro to your videos is a bit heavy-handed.
SeraphInvictus 10 months ago
*forgot to type the rest, but if making the floor instead of her move makes this problem?? :/
AquaXranoX 11 months ago
Oh and im not sure if making the floor move instead of the player makes her face in that same direction
AquaXranoX 11 months ago
Just one quick question... i'm using a yggdra sprite for this, but she doesnt flip when she is walking left, but she keeps facing right although she is walking left..
any way to fix this?
AquaXranoX 11 months ago
This has been flagged as spam show
are you mexican or middle eastern. And please....change your voice.
Sikeman214 11 months ago
@Sikeman214
im neither and that my natural voice
Borris123PSN 11 months ago
@Borris123PSN Oh, you're carribean, so that's why u have a mexican accent. It's cool.
Sikeman214 11 months ago
@Borris123PSN You really got AIDS go die please. or Change voice
ZersiXs 10 months ago
@ZersiXs gtfo dude, his voice is awesome.
KOODAZHENICK 8 months ago
Thx a lot for the tutorials! But I got one problem, I can't make the align thing to work. The ball just "sink" through the floor and you can just the half of it (just as it was before you did the align thing) What is the problem?
MyLolZor 11 months ago
@MyLolZor in your align panel click the align align to stage box if you haven't, if not try just moving your character yourself :)
shamelesssCH33Z3 9 months ago
Hm... I must ask you too.
Why is your voice so strange? :O
CrackStar96 11 months ago
@CrackStar96 PS: Your Tutorials are great :D
CrackStar96 11 months ago
why your voice sounds like a frog?
Michaeltheremin 11 months ago
1+1=10
ClTIZEN 1 year ago 3
@ClTIZEN LOL!!!!! so true. and 1+1+1 = 11
Borris123PSN 1 year ago 3
What's with the cracked up voice?
dadiddlydooda 1 year ago
that is easy 1+1 is 35435434384x6546
Maximilian0705 1 year ago
5. a brain
6. 2 hands
7. knowing math! if u don't know what 1 +1 is, then don't look at this video
Just Epic! XDDD
Seryosin 1 year ago
can u please just send out the code!!!
SIPSHNUKE 1 year ago
Uhm, how do i make my sprite change when he's jumping and keep it on the jumping sprite while he's in the air? [ Ex. Char is jumping - Left or Right is pressed, walk sprite is initiated. ] [ I need : Char is jumping - Left or right is pressed, Jump sprite stays but flips and moves. ]
segavagrant 1 year ago
@segavagrant well u can try something like this; (i'm writing in English, u will have write it in code )
if the right key is down and canjump or left key is down and canjump, then
go to running animation
also u can have;
if player is not touching the floor, then
go to jumping animation.
Borris123PSN 1 year ago
@Borris123PSN so "1 if (EmiroKitzemaru.y>301+); { 2 EmiroKitzemaru.gotoAndStop('jumping') 3 if (Key.isDown(Key.RIGHT)) { 4 EmiroKitzemaru.scaleX = -1; 5 } 6 if (Key.isDown(Key.LEFT)) { 7 EmiroKitzemaru.scaleX = 1; 8 } 9 } 10 }"
i labeled my frames so thats y it's jumping instead of a frame number.
2 syntax errors
Both on Line 1
1084: Syntax error : expecting identifier before rightparen.
1084: Syntax error : expecting rightparen before left brace.
segavagrant 1 year ago
@Borris123PSN Could you elaborate? I'm not very advanced in Actionscipt so I can't get it to work. I put this code:
player_mc.gotoAndStop(3);
in the brackets after this:
if(!floor_mc.hitTestPoint(player_mc.x,player_mc.y,true))
The issue is that when the character lands he is still in the jump frame and is stuck like that. Any help is very much appreciated
WyvernVII 10 months ago
@Borris123PSN Is there anyway I can have the code for that. I want to get it so my character can't walk while in air, but I'm having a hard time figuring it out from your description. Thanks for these videos and the help!
Razlo 8 months ago
I just wanted to say that these are good tutorials. I used to program in AS1, but after watching these tutorials I have a much better understanding of how syntax of AS3 works and will hopefully be able to fully switch over to the new Action Script fairly easily. Thanks!
shibby71790 1 year ago
Your tutorials are just the start I needed. Thank you for the great work.
mindfullchaos 1 year ago
Comment removed
CoolAlucks 1 year ago
or even better
if(canJump && !leftKeyIsDown && !rightKeyIsDown) { hero_mc.gotoAndStop("stand"); }
goraz666 1 year ago
@goraz666
i have tears of joy right now. people like you are good ppl, u try to understand things instead of "copy and paste" like so many ppl like to do.
PS. thats what i hav for my final code :). i was ganna make a next tut on how to make the animations better, but i never got around to it :(
Borris123PSN 1 year ago
hi there!
first of all, thanks for your great tutorials!!!!
i think i found a solution for the little animation problems:
if( leftKeyIsDown && !upKeyIsDown && floor_mc.hitTestPoint(hero_mc.x, hero_mc.y, true)) { hero_mc.gotoAndStop("walk"); }
works fine for me.
goraz666 1 year ago
@goraz666
Thats actually really smart! i dont know y i didnt think of that! its nice to see that people i trying new things on there own with the new knowledge the got :)
Borris123PSN 1 year ago
Nice animations
PrawdaUnia 1 year ago
Comment removed
GlennBrann 1 year ago
Very useful thanks! :D
Imperialmoonlight 1 year ago