Hi everyone! I hope this tutorial helped you out animating your characters! :D
@michaelchen30862 жыл бұрын
Woooohooooo
@nakulojha13662 жыл бұрын
thanks its very helpful🔥🔥🔥
@Geezi242 жыл бұрын
It did for sure! Next u could make a animaiting/drawing tutorial!
@cringeman8282 жыл бұрын
yea
@naturelist2 жыл бұрын
Right what I needed!
@nathanruhstofer8302 жыл бұрын
You know.... I've always followed tutorials but never understood why they put the blocks here or there, but you explained how it worked and I was finally able to understand! Thanks a lot!!
@ShiftClickLearn2 жыл бұрын
You're very welcome, glad I could help. :D
@BestBoi8 Жыл бұрын
For anyone who wants the time until the frame swaps to be consistent (not switching to walk anim1 and instantly switching to walk anim2) You can reset the _costume variable when your "if moving" variable updates (this worked for me but idk if it works perfectly in the tutorials exact code since mine is slightly different)
@jeffreygordon71942 жыл бұрын
Great job on this. These short explanation videos that focus on a single key concept really stand out among scratch tutorials on KZbin.
@ShiftClickLearn2 жыл бұрын
Glad it was helpful!
@JoshuaDixon-n9x4 ай бұрын
TYSM! I always wanted to learn how to animate a character in a game and now thanks to you I can.
@kostasismename9493 Жыл бұрын
you can use the round block to fit the entire animation in 1 single line (also you can use timer instead of a variable, which reduces file size by not alot but i thought i'd say that)
@Nightgames_YT_9495 ай бұрын
You wanna know what im planning on?
@kostasismename94935 ай бұрын
@@Nightgames_YT_949 ...sure
@Nightgames_YT_9495 ай бұрын
@@kostasismename9493 Im planning on to make a Fanmade Murder drone movie.With good ending.
@jdnnle62 жыл бұрын
Thank you so much for this! I was trying to make a script that makes the animation play at different speeds, and this is exactly what I was looking for!
@ShiftClickLearn2 жыл бұрын
You are very welcome!!!
@Geezi242 жыл бұрын
Congrats on 9k dude! You definetly deserve it! 💯💯
@ShiftClickLearn2 жыл бұрын
Thank you!!!!!
@hermanzainal27822 жыл бұрын
AH HEM. its 10 k now :D
@IceBit06 ай бұрын
Bro has no idea how much he helped me. I got 23rd place in a game jam for kids (scratch only) , everyone's animations were choppy but mine weren't thanks to this guy :)
@patotatoman4552 жыл бұрын
It's a great video, and it had helped me a lot. However, I have a question. I'm doing a fighting game, and for animations like Idle and walking this is very useful, however, when i'm trying to do a punch, how do you make that an animation runs just 1 time without using waits? Is it possible, or it's just better to use the old method (with waits and stuff)
@LostDeveloper871 Жыл бұрын
just have the total costumes to be 1 and speed to 0.
@stickinthemudstudios Жыл бұрын
@@LostDeveloper871 Please elaborate.
@JustMe...12354 Жыл бұрын
I should've looked up a video about this sooner, It would've saved me SOOOO much time. THANK YOU!!!
@Rory4322 жыл бұрын
Nice! I’m definitely going to show this to the guys down at my animation club!
@lightning_rift8 ай бұрын
this tutorial is actually the best animation i've ever seen. im doing this on a laptop and there's NO LAG.
@JaydenGaming459Ай бұрын
you are the best video tutorial creator I have ever seen because you teach hardcore stuff and it only takes minutes too finish
@KIUJOONYIMoe Жыл бұрын
Thank you so much for this video!!!You help me to complete a animation on scratch
@bigman80852 жыл бұрын
Thank you so much for this tutorial
@ShiftClickLearn2 жыл бұрын
You are so welcome!
@shahinma2212 жыл бұрын
Me when @ShiftClickLearn uploads a video : YAYAYAYAYAYAYAYAYAYAYAYAYAYAYAYAYAYA(happiness)
@Wallee5802 жыл бұрын
Hello Owen! Can't wait to you reach 10K subs :p
@nikolangot2 жыл бұрын
who is owen?
@Wallee5802 жыл бұрын
@@nikolangot Owen is ShiftClickLearn's actual name, you don't think his birth certificate has his channels name on it do you? :p
@ShiftClickLearn2 жыл бұрын
Hiya! I can't either!
@MilcahMuemaКүн бұрын
yup
@minhkhoiphungtran6759 Жыл бұрын
Thanks man i was actually struggling on the loop problem and once i'm about to quit i came by ur video. Keep it up!
@Crazybros02 жыл бұрын
thank you so much!! ive been trying to make good animations for my new game but have always had problems with the delays. now i can have good animations :D
@ShiftClickLearn2 жыл бұрын
Glad I could help!
@Crazybros02 жыл бұрын
@@ShiftClickLearn (:
@N64Mario2 жыл бұрын
That's an interesting trick to use that kind of script for animating sprites, and it works for most cases. However, there are some cases when you want to animate a sprite with their own frame time value. For example, frame 1 may want to last 4 frames, frame 2 may want to last for 1 frame, and frame 3 may want to last for 8 frames. With the mod trick here, you don't have that kind of freedom because every frame is connected to a single value of the _costume variable there. Nevertheless, this a great tutorial Nice job!! :)
@jeffreygordon71942 жыл бұрын
In that case you could just duplicate the frames. That's usually what I do. This is pretty common to see in sprite sheets in commercial arcade games.
@ShiftClickLearn2 жыл бұрын
Good point, thanks! :D
@bameyigeorge68863 ай бұрын
Thank you for this video you saved my life with scratch
@AnArcadeMan2 жыл бұрын
Hey ShiftClick can you do a tutorial on how to make the google Scoville game. and i loved the viedo
@ShiftClickLearn2 жыл бұрын
I haven't played that game. I will have to check it out!
@geodelire2 жыл бұрын
Honestly you deserve 100k subs btw i was here when you had 3k
@ShiftClickLearn2 жыл бұрын
Thank you so much!!!
@SputerTheHorse Жыл бұрын
I usually use “When space clicked next costume” and there’s usually one sprite and I consider the costumes as “Frames” (My animations are usually simple and I copy and paste from other sprites)
@olympiannerd2 ай бұрын
This was exactly what i needed thank you!!!
@shirigayamahiro62736 ай бұрын
Thanks a lot. Im saved from depression wasted a lot of hours trying to find a way to do this. Scratch really have a confusing way to animate costume when you are a beginner. I can't use things like while, released, and some operators. Many in youtube just using 2 costume way which they just use like in The video where its not a fricking chance where I have like 20 frames for running, 30 frames for jumping and etc, it will waste a lot of space and time,even if we disregard that its also not looking smoothly. So yeah thanks a lot
@Nayrlol68552 жыл бұрын
For people with the scratch addons addon i sugegs you do change costume to say broadcast 1 change costume to say broadcast 2 then right click anywhere click clean up blocks+
@ShiftClickLearn2 жыл бұрын
:D
@paperjoe2 жыл бұрын
Thanks! I was trying for 1 week to do this by myself and i couldn't do it. Subscribed!
@ShiftClickLearn2 жыл бұрын
You're welcome! Glad it helped! :D
@rlawrence6782 жыл бұрын
I'll use these tips
@ShiftClickLearn2 жыл бұрын
Awesome
@moosvfx2 жыл бұрын
i really apreciate your help with dowloanding this software
I tried this and the idle worked amazing! but the walking doesn't seem to work. When i press d or a only one of the costumes play and not the entire walk cycle. Do you know how to fix this?
@javascript78172 жыл бұрын
Really cool! Sometimes math can save a ton of headaches!
@Mari0Kid12342 жыл бұрын
That’s a reason I love math :)
@JointFury2 жыл бұрын
Apart from when math causes headaches lol
@JustPlay8178 ай бұрын
So cool!
@gravesilk3222 жыл бұрын
How r u so underrated??? Your tutorials are so easy to follow and you are rlly funny aswell!!!
@ShiftClickLearn2 жыл бұрын
Aww, ty!!! :D
@eliteMASTER314229 күн бұрын
How do i make it reset the animation? For example when i want a jump animation, i want it to reset to the first frame every time i jump because it just keeps looping the animation even when i dont put an input
@danstevers2 жыл бұрын
i love your tutorials😄
@ShiftClickLearn2 жыл бұрын
Thank you Dan Stevers! :D
@theorangecat12442 жыл бұрын
thank you!
@ShiftClickLearn2 жыл бұрын
You're welcome!
@CMichaelNeely2 жыл бұрын
I love animations.
@ShiftClickLearn2 жыл бұрын
:D
@kylierodriguez76172 жыл бұрын
THANK YOU SO MUCHHHHHH I NEEDED THISSS
@VibeswZP5 ай бұрын
Loved this, helped a lot with my game.
@brsquadscratchr2 жыл бұрын
ShiftClickLearn is a legend
@SIG7Pro2 жыл бұрын
Nice! I might use this one day!
@ShiftClickLearn2 жыл бұрын
Awesome! :D
@corndogthehedgehog2772 жыл бұрын
Thanks at the first part of the vid when i did all of your code it was laggy but when i finished not anymore!
@ShiftClickLearn2 жыл бұрын
No problem!
@acyssfx7 ай бұрын
Hi, nice trick. I am very new to Scratch, quick question. Will the variable eventually reach it's max value? Like in c#, an INTEGER has a max value of 32k or something. What are the variables treated as in scratch? I assume some kind of float or double if they use decimal points. Is there a max/min value of variables?
@LiamGames6622 жыл бұрын
Think you for the animation skill im gonna put you in the credits btw
@ShiftClickLearn2 жыл бұрын
You're welcome!! :D
@johandraws31662 жыл бұрын
Thank you SO MUCH, I needed this
@ShiftClickLearn2 жыл бұрын
You're so welcome! :D
@Nathan_no1 Жыл бұрын
tysm, i remebered i had to use a mod block but not sure where you help me so much
@jeenakfyd67235 ай бұрын
something wrong. my character is switching into their idle in their run
@elvisfriends9528Ай бұрын
me too
@pinewaresoftware42479 ай бұрын
thank you thats the third time i needed this video
@arjundas2434 Жыл бұрын
This guy is a legend
@thepers0nwh0asked Жыл бұрын
pretty late to the party but thank you sooo soo much im making a top view tower defense game and this really helped thank you!
@cakesrus38522 жыл бұрын
Awesome this is way to cool !!!
@ShrekCOVEY Жыл бұрын
Thank you for this! I need to animate a cartoon for my class.
@captainblues12 жыл бұрын
That's genius, mate!
@ShiftClickLearn2 жыл бұрын
Thanks a lot!
@groundsurvivalstudygracieg4034Ай бұрын
I think I just recognized your voice. Are you the guy who just walked in and sat down to attend college lectures without even being a student? If so, you're the one who let me know about Harvard's CS50 course being free online and that's how I ended up here. .... :O
@bernardlemay85632 жыл бұрын
Really cool! Thanks! Doesn't it mean that the animation speed is dependent on the computer speed though?
@ShiftClickLearn2 жыл бұрын
Ooh, that's a good point! Scratch SHOULD stay at 30fps, but it could drop below. You might need to implement a delta time system!
@bernardlemay85632 жыл бұрын
@@ShiftClickLearn and just like that, you've got a new subscriber. Thanks for replying to me!
@ShiftClickLearn2 жыл бұрын
@@bernardlemay8563 You are very welcome! Thanks for subbing! :D
@davidakenji474610 ай бұрын
i used your video on hitboxes and tried to combine it with this one but the programs don’t seem to be working properly because i’m getting no animation at all. what would be the problem?
@RecraftedS2 жыл бұрын
Thank You! This is So Useful!!! :D
@ShiftClickLearn2 жыл бұрын
You're welcome Recrafted! Glad I could help! :D
@LeftyGamez6662 жыл бұрын
Hey! Really great tutorial, right now I'm trying to make a top down rpg game and for it to work I need to move upwards and downwards with a walking cycle too. You think you can help me?
@ShiftClickLearn2 жыл бұрын
You'd need to play the correct animation depending on the velocity! Something like this: if (velocityX > 0) { right animation } else if (velocityX < 0) { left animation } else if (velocityY > 0) { up animation } etc.
@LeftyGamez6662 жыл бұрын
@@ShiftClickLearn It worked! Thanks bro!
@FLoriN22 жыл бұрын
Nice script, thanks!
@Geezi242 жыл бұрын
Hey ShiftClickLearn could you make a scrolling backround or someting simmilar to that tutorial? i have trouble figuring out how to make a scrolling backround if the charecter follows the mousepointer! (#hope -u-get-to-10k!!!!!!!!)
@ShiftClickLearn2 жыл бұрын
That is a great idea! I'll remember that one!
@ImKarmaHQ10 ай бұрын
I used this to make a custom block that does the switching and stuff and stuff.
@bennie1079 Жыл бұрын
Is it really not possible to import a premade video directly into the code? Like some sort of "play animation" or "play video" that just plays the video you importeted? Does everything HAVE to be frame by frame?
@matuchuru Жыл бұрын
yep 3 months later
@youyoutian-jr2bx28 күн бұрын
You stopped posting a while ago but if in luck if there’s anyone seeing this my character keeps flipping upside down when they move to the left, I’ve made sure every thing is correct but it just keeps flipping how do I fix this
@mixrockbonnie10735 ай бұрын
Thanks a lot for this tutorial, the only problem is that on the 4 keys (arrrow keys) one's animation doesn't work
@kushiboyplayz18314 ай бұрын
Can you also make a video on how to draw each frame of a character for scratch animations?
@kushiboyplayz18314 ай бұрын
because i have trouble with that
@HollowM0th Жыл бұрын
Is rain world-like procedural animation possible in scratch? I’ve been trying to make it and I have a green lizard’s body and head but whenever I try to make the head turn at a higher speed than the body, it gets disconnected. It still disconnects if it suddenly has to change direction. The back and front of the body can move at different speeds and be fine though.
@terkq2 жыл бұрын
ShiftClickLearn, may you try making a word search scratch video ? I saw Scratch has lots of project about wordle and more... Hope my idea is helpful for you
@ShiftClickLearn2 жыл бұрын
That's a really good idea
@cheir10002 жыл бұрын
scakekl thx sooooo much
@ShiftClickLearn2 жыл бұрын
You're welcome!
@kaytchouate13422 жыл бұрын
thanks you don not know how much i wanted to do this :)
@paranthesisism2 жыл бұрын
hey so, i'm having a bit of trouble. what's going on is that i want an animation that lasts for 3 frames, then goes to an idle animation for 1 second the problem is that i can't find a way to make it work any help appreciated thank you
@ShiftClickLearn2 жыл бұрын
Hmm, try making a time that constantly ticks down. Then once it equals a certain value, reset it. Ex: when green flag clicked { set timer to 33; } forever { if (timer > 30) { play the animation that lasts for 3 frames } else { play the one that last for 1 second. } change timer by -1 if (timer < 1) { set timer to 33 } } I don't know if this will work for sure, but it should. Basically each frame it will check if the timer var is equal to 30, 31, or 32, and if it is, switch costume to the 3 frame animation. Other wise, it will play the 1 second animation 30 times. (Scratch runs at 30fps so it should run the forever loop 30 times a second.) Then once the timer reaches 0, it will start over.
@paranthesisism2 жыл бұрын
@@ShiftClickLearn did that, the thing is completely static now.
@Noc.3ds2 жыл бұрын
You are the Best! Thank you so much! 🙌
@ShiftClickLearn2 жыл бұрын
You're very welcome, thanks! :D
@Hamgotnew Жыл бұрын
i spend 20 mins trying to fix it and i just had to this video!!
@annaritacapellupo57972 жыл бұрын
working fine thank you
@ShiftClickLearn2 жыл бұрын
You're welcome!
@gamingwithpapyrus78352 жыл бұрын
Hey, ShiftClickLearn do I give credit to you if I use this?
@ShiftClickLearn2 жыл бұрын
No, don't worry about credit! I didn't even make this algorithm, I've just seen it all over Scratch. :D
@jorgeanthoniohuertavazquez7142 жыл бұрын
yo bro, really thankya. Big respect
@anamoyeee2 жыл бұрын
Nice video!
@ShiftClickLearn2 жыл бұрын
Thanks!!
@Username-mp8jl2 жыл бұрын
I can finally make my jetpack joyride game better thx!
@ShiftClickLearn2 жыл бұрын
:D
@dolliethedoll2 жыл бұрын
me: what a nice day to watch ShiftClickLear- wifi: hi me: nvm
@ShiftClickLearn2 жыл бұрын
LOL
@koneenika1324 Жыл бұрын
Hi! What would you do to make it so that the idle animation faces the same way when the character moves a certain direction and stops? Thank you sooo much for this video it was very helpful :)
@viccalyn28_26 Жыл бұрын
you remove the "POINT IN DIRECTION Ximput x 90"
@We_can_change_the_world Жыл бұрын
Thanks you're the best you just gained a follower
@j786friend6 ай бұрын
Thanks for the help.
@HaleyRicks-o6e4 ай бұрын
So there’s one way if you want to make this more hard, you just do one forever block and get the go to next costume block put it inside the forever block. And then your done ✅ but for beginners look at this video instead but for serious pros who want animations to look good do the code I said.
@RedBlast1722 жыл бұрын
This is helpful so far!
@ShiftClickLearn2 жыл бұрын
I'm so glad 😊
@Rora22 жыл бұрын
How do i do this if i set up my movement and collisions with your other tutorial for collisions?
@ShiftClickLearn2 жыл бұрын
You would make a platformer, then just add this animation code in a loop. (A forever loop or a when I receive loop.)
@odohjn Жыл бұрын
incredibly helpful, you deserve a sub!
@Dolliestxo Жыл бұрын
tysm this works so well but one thing i need is a running animation 😭😭
@GREYanimationofficial3 ай бұрын
unlike you said it doesn’t work it just repeats all of my costumes to a pose of just a few pls help me
@tommax1626 Жыл бұрын
Hey there, i want to create clones with many animations playing at once, how much can scratch handle before being slowed down? ?
@splatzer82402 жыл бұрын
Question: For the idle animation, how to you make the frame for example, go to 1-5 than go backwards, if that makes sense.
@ShiftClickLearn2 жыл бұрын
Hmm, try repeating the amount of costumes in the animation, change the _costume var by a positive number, then repeating the amount of costumes in the animation again, changing it by a negative number. Ex: repeat 5 { change _costume by 0.5 } repeat 5 { change _costume by -0.5 } I think this will work. :D
@splatzer82402 жыл бұрын
@@ShiftClickLearn Its okay I found another way! But thanks for your help, sounds more effective than back a dupe of the costumeXD.
@therealgookie Жыл бұрын
If im trying to make a full on animation, is there any way to recreate tweens and frame transitions?
@hafizsabiqulhaq6041 Жыл бұрын
This is helped me. Thanks
@akjstuff6980 Жыл бұрын
@ShiftClickLearn hey is there a way to play different animations like a jump into a idle if there is can you respond
@sunnytwist2871 Жыл бұрын
WHEN I TELL YOU THIS HELPED SO MUCH, TY😭
@MurasakiSensei Жыл бұрын
it doesn't work for me though..
@sunnytwist2871 Жыл бұрын
@@MurasakiSensei wdym, it doesn’t?
@MurasakiSensei Жыл бұрын
@@sunnytwist2871 nvm it works but it gets teleported to the start no matter what
@Boggothefroggo32123 Жыл бұрын
@@MurasakiSenseihow did you fix it
@yeetmeister-en8be10 ай бұрын
im making a rpg game thank you I love your videos
@shirou6362 жыл бұрын
how do i add a i downloaded to my soft soft so i can resetup it?
@charlesenzotimola90732 ай бұрын
pls amke a tutorial for the walk cycle for a lot of frames
@stupid402665 ай бұрын
I have a problem where I cannot animate x and y directions at the same time