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!
@Geezi242 жыл бұрын
Congrats on 9k dude! You definetly deserve it! 💯💯
@ShiftClickLearn2 жыл бұрын
Thank you!!!!!
@hermanzainal27822 жыл бұрын
AH HEM. its 10 k now :D
@JoshuaDixon-n9x5 ай бұрын
TYSM! I always wanted to learn how to animate a character in a game and now thanks to you I can.
@JaydenGaming4593 ай бұрын
you are the best video tutorial creator I have ever seen because you teach hardcore stuff and it only takes minutes too finish
@IceBit08 ай бұрын
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 :)
@geodelire2 жыл бұрын
Honestly you deserve 100k subs btw i was here when you had 3k
@ShiftClickLearn2 жыл бұрын
Thank you so much!!!
@JustMe...123542 жыл бұрын
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_rift10 ай бұрын
this tutorial is actually the best animation i've ever seen. im doing this on a laptop and there's NO LAG.
@gravesilk3222 жыл бұрын
How r u so underrated??? Your tutorials are so easy to follow and you are rlly funny aswell!!!
@ShiftClickLearn2 жыл бұрын
Aww, ty!!! :D
@minhkhoiphungtran67592 жыл бұрын
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!
@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!!!
@danstevers2 жыл бұрын
i love your tutorials😄
@ShiftClickLearn2 жыл бұрын
Thank you Dan Stevers! :D
@KIUJOONYIMoe Жыл бұрын
Thank you so much for this video!!!You help me to complete a animation on scratch
@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
@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
@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 (:
@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
@olympiannerd4 ай бұрын
This was exactly what i needed thank you!!!
@bigman80852 жыл бұрын
Thank you so much for this tutorial
@ShiftClickLearn2 жыл бұрын
You are so welcome!
@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_9496 ай бұрын
You wanna know what im planning on?
@kostasismename94936 ай бұрын
@@Nightgames_YT_949 ...sure
@Nightgames_YT_9496 ай бұрын
@@kostasismename9493 Im planning on to make a Fanmade Murder drone movie.With good ending.
@bameyigeorge68864 ай бұрын
Thank you for this video you saved my life with scratch
@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
@eliteMASTER31422 ай бұрын
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
@shirigayamahiro62737 ай бұрын
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
@kylierodriguez76172 жыл бұрын
THANK YOU SO MUCHHHHHH I NEEDED THISSS
@shirou6362 жыл бұрын
how do i add a i downloaded to my soft soft so i can resetup it?
@moosvfx2 жыл бұрын
i really apreciate your help with dowloanding this software
@ShiftClickLearn2 жыл бұрын
You're welcome
@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)
@LostDeveloper8712 жыл бұрын
just have the total costumes to be 1 and speed to 0.
@stickinthemudstudios Жыл бұрын
@@LostDeveloper871 Please elaborate.
@VibeswZP7 ай бұрын
Loved this, helped a lot with my game.
@Titi-tf5uy Жыл бұрын
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?
@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
@JustPlay8179 ай бұрын
So cool!
@shahinma2212 жыл бұрын
Me when @ShiftClickLearn uploads a video : YAYAYAYAYAYAYAYAYAYAYAYAYAYAYAYAYAYA(happiness)
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!
@odohjn Жыл бұрын
incredibly helpful, you deserve a sub!
@johandraws31662 жыл бұрын
Thank you SO MUCH, I needed this
@ShiftClickLearn2 жыл бұрын
You're so welcome! :D
@ntahlah2755Ай бұрын
now how do you make the animation?
@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)
@KONOMIITSUKA14 күн бұрын
im having a problem where the idle plays during the walk animation, anyway to fix that?
@captainblues12 жыл бұрын
That's genius, mate!
@ShiftClickLearn2 жыл бұрын
Thanks a lot!
@RecraftedS2 жыл бұрын
Thank You! This is So Useful!!! :D
@ShiftClickLearn2 жыл бұрын
You're welcome Recrafted! Glad I could help! :D
@cakesrus38522 жыл бұрын
Awesome this is way to cool !!!
@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.
@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
@groundsurvivalstudygracieg40342 ай бұрын
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
@pinewaresoftware424711 ай бұрын
thank you thats the third time i needed this video
@youyoutian-jr2bx2 ай бұрын
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
@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!
@Nathan_no1 Жыл бұрын
tysm, i remebered i had to use a mod block but not sure where you help me so much
@therealgookie Жыл бұрын
If im trying to make a full on animation, is there any way to recreate tweens and frame transitions?
@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!
@davidakenji474611 ай бұрын
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?
@FLoriN22 жыл бұрын
Nice script, thanks!
@silverseyeris2 жыл бұрын
I'm trying to do the animation for up and down currently, but the up animation for some reason does both the left and right animation aswell how do i fix this?
@ShiftClickLearn2 жыл бұрын
Well, it's really hard to tell without seeing the code... Did you put the right conditions in the if loops that check what animation should play?
@silverseyeris2 жыл бұрын
@@ShiftClickLearn yup!
@silverseyeris2 жыл бұрын
i even double checked
@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.)
@rlawrence6782 жыл бұрын
I'll use these tips
@ShiftClickLearn2 жыл бұрын
Awesome
@akjstuff6980 Жыл бұрын
@ShiftClickLearn hey is there a way to play different animations like a jump into a idle if there is can you respond
@Noc.3ds2 жыл бұрын
You are the Best! Thank you so much! 🙌
@ShiftClickLearn2 жыл бұрын
You're very welcome, thanks! :D
@anamoyeee2 жыл бұрын
Nice video!
@ShiftClickLearn2 жыл бұрын
Thanks!!
@LiamGames6622 жыл бұрын
Think you for the animation skill im gonna put you in the credits btw
@ShiftClickLearn2 жыл бұрын
You're welcome!! :D
@We_can_change_the_world Жыл бұрын
Thanks you're the best you just gained a follower
@acyssfx9 ай бұрын
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?
@arjundas2434 Жыл бұрын
This guy is a legend
@ImKarmaHQ11 ай бұрын
I used this to make a custom block that does the switching and stuff and stuff.
@theorangecat12442 жыл бұрын
thank you!
@ShiftClickLearn2 жыл бұрын
You're welcome!
@HollowM0th2 жыл бұрын
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.
@tommax1626 Жыл бұрын
Hey there, i want to create clones with many animations playing at once, how much can scratch handle before being slowed down? ?
@ShrekCOVEY2 жыл бұрын
Thank you for this! I need to animate a cartoon for my class.
@JoseMathiasEchavezCastaño17 күн бұрын
Thanks for the video :D
@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.
@jorgeanthoniohuertavazquez7142 жыл бұрын
yo bro, really thankya. Big respect
@aidenakpan32136 ай бұрын
how would I do this with more complicated animations?
@jacksonvandenheever82417 ай бұрын
for some reason the costume value SHOOTS into the ten-thousands in a second even though i have the exact code as u?! please help, is it the softwares issue?
@kaytchouate13422 жыл бұрын
thanks you don not know how much i wanted to do this :)
@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
@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!
@AlexisTorresLozada Жыл бұрын
What are all the variables for because I am confuse
@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!
@Sushi3711 ай бұрын
How can you make it so you can use W and S?
@Sables6665 ай бұрын
How do I make it so when it exits the screen it comes back through the other side
@midnightman39185 ай бұрын
make it so if the x position of your sprite is greater than 500 or -500 then set the x position to the opposite side :3
@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
@Hamgotnew Жыл бұрын
i spend 20 mins trying to fix it and i just had to this video!!
@HaleyRicks-o6e5 ай бұрын
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.
@CMichaelNeely2 жыл бұрын
I love animations.
@ShiftClickLearn2 жыл бұрын
:D
@kushiboyplayz18316 ай бұрын
Can you also make a video on how to draw each frame of a character for scratch animations?
@kushiboyplayz18316 ай бұрын
because i have trouble with that
@Dolliestxo Жыл бұрын
tysm this works so well but one thing i need is a running animation 😭😭
@hafizsabiqulhaq6041 Жыл бұрын
This is helped me. Thanks
@mixrockbonnie10736 ай бұрын
Thanks a lot for this tutorial, the only problem is that on the 4 keys (arrrow keys) one's animation doesn't work
@GREYanimationofficial4 ай бұрын
unlike you said it doesn’t work it just repeats all of my costumes to a pose of just a few pls help me
@mint20000Ай бұрын
weird my sprite only does the running animation and doesnt switch to idle even i have the if statement
@mint20000Ай бұрын
idk what to do ive checked atleast 20 times now and it doesnt work
@mint20000Ай бұрын
nvm figured it out
@DaviSampaiochagas-fx9dqАй бұрын
How?
@mint2000018 күн бұрын
@@DaviSampaiochagas-fx9dq messed up something in the big green part of code