EPIC SPRITE TRAILS | Easy Coding Tutorial to Spice up your Game

2024 ж. 12 Мам.
324 940 Рет қаралды

Learn how to create Epic Sprite Trails for your Scratch Game in this Easy Scratch Tutorial. Give your player those Go Fast Turbo Speed Effect, whoosh! Or upgrade your mouse pointer to look super cool. Keep the trails short or long, it's up to you. We look at using clones and pen stamping for trails using the Pen extension.
⭐ Support this channel - Join to get access to perks:
/ @griffpatch
🐱 Scratch Studio for this tutorial - scratch.mit.edu/studios/32008...
👀 Other Quick and fun Tutorials - • Quick and Fun Scratch ...
👀 Playlist of all Tile Scrolling Platformer Episodes:
• Griffpatch's Tile Scro...
📹 The Awesome Video Editing software I use (Camtasia)
techsmith.z6rjha.net/5bajbo
-------------Video Chapters-------------
0:00 Intro
0:33 Trails using clones
1:23 Fading Clones
2:15 Variable length clone trails
3:39 Pen Stamping Sprite Trails
4:51 Ghosting a Stamp
7:14 Fading a stamped trail
8:51 Outro

Пікірлер
  • I love how 99% of KZheadrs start with 'Without further ado'. Also, when you enable Subtitles, it says 'adieu', which means goodbye LOL.

    @arandomorange@arandomorange Жыл бұрын
    • lol

      @need890@need8905 ай бұрын
    • Lol hahaha

      @PersonOverHeaven@PersonOverHeaven4 ай бұрын
    • Bruhhhhhhh

      @taramoloney9119@taramoloney91192 ай бұрын
  • i love the creativity in the tutorials. griffpatch always makes even the simplest tricks more optimized and satisfying. not only are these tutorials helpful they also encourage people to think outside the box and work around the limits

    @surlo69@surlo69 Жыл бұрын
  • I feel like this would fit in well with a sonic or crash Bandicoot game

    @DanielHCassidy@DanielHCassidy Жыл бұрын
    • Especially for Super/Hyper Sonic

      @NeoCaeky@NeoCaeky Жыл бұрын
    • @Percy G Exactly!

      @NeoCaeky@NeoCaeky Жыл бұрын
  • Protip: You can drag a stamp block into the stage and it works fine! Together with the brightness effect (100 is fully white), you can make the fader without any extra sprites or costumes, as long as the backdrop has no transparent parts (otherwise not all parts will fade properly).

    @cst1229@cst1229 Жыл бұрын
    • Wow cool

      @griffpatch@griffpatch Жыл бұрын
  • I remember following you nearly 10 years ago on Scratch. I was still in elementary school then. It's honestly heartwarming that you are still teaching this amazing community

    @nitrous5139@nitrous5139 Жыл бұрын
    • i cant believe how long its been

      @OmniSync@OmniSync7 ай бұрын
    • O

      @SametKaratas0@SametKaratas04 ай бұрын
  • This is just really clever and simple, I never thought of this method for the fade effect!

    @onyxtautuhi3473@onyxtautuhi3473 Жыл бұрын
  • This will be a great feature to my game. Thx for posting

    @occrazy8@occrazy8 Жыл бұрын
  • Another great tutorial! Also, congrats on 400K!

    @NITRO_PRO@NITRO_PRO Жыл бұрын
  • Hello fellow scratchers is a very great intro to the video!! Another helpful video, please make more!!

    @melon9089@melon9089 Жыл бұрын
  • great tutorial! And very concise! next, can you do a follow up on the terrain generation video? Maybe tackling crafting or inventory stuff?

    @weegie3343@weegie3343 Жыл бұрын
  • It's nice to see you posting more often!!

    @lightbeam6056@lightbeam6056 Жыл бұрын
  • I've seen you use stamps in another video, but it was done so fast I didn't see what you clicked on to get it up TY for making it clear in this vid. :D its like my whole world just got that much bigger XD

    @Mel-mu8ox@Mel-mu8ox Жыл бұрын
  • I have no idea how to use stamp like that at first i did not know why this was useful in since u can just use clones but i forgot that theres a clone limit great job!

    @KatOnMelon@KatOnMelon Жыл бұрын
  • Woah your channel has grown a lot!

    @imasdew-fnejkw@imasdew-fnejkw8 ай бұрын
  • Is it just me or is Griffpatch making features that make games more SATISFYING? First, boids and now trails! Really satisfying indeed! I wonder what satisfying feature he will make next...

    @gceceditsstuff@gceceditsstuff Жыл бұрын
    • A EDITOR!

      @bankio6957@bankio6957 Жыл бұрын
    • The first time i started Scratch i was like "Oh. Ok that's just a little price version of a Turing Machine but it's kinda gcool." But now i see how scratch is satisfying.

      @blackhole37@blackhole37 Жыл бұрын
  • OOOOH i've been waiting for this tutorial for YEARS

    @ticyyy2336@ticyyy2336 Жыл бұрын
  • Thanks for the tutorial man! This helped a lot in most of my projects

    @mh2580@mh258025 күн бұрын
  • I love the self contained tutorials! Well done as usual. The fader feels like a nice backpackable solution. I guess another downside to the stamping is that it assumes you're not using stamps for some other purpose already? I suppose you could re-stamp things like tiles, etc if needed after the ghosting? Or if you had something like a level mask, I guess you could only stamp the fader in areas that don't have other more permanent stamps. Hmm...

    @Resseguie@Resseguie Жыл бұрын
    • Using clones is generally better for scrolling games, stamping is good for longer trails and more objected with trails, but to stamp on scrolling games requires using lists

      @griffpatch@griffpatch Жыл бұрын
    • @@griffpatch it said scratch email not exist

      @DinoTaken@DinoTaken Жыл бұрын
    • ​@@griffpatchwhy are my clones following the character

      @DoDoBird830@DoDoBird8304 ай бұрын
  • great! I will use the functios with the stamping in my platformers now! Thank you very much for the tutorial! :D

    @revelnic@revelnic Жыл бұрын
  • Oh, that explains why you had an odd background effect in the boids tutorial. I was wondering how you managed to make those. It's like from a different platform. Now I get it. I was actually looking for simplest way to do this, the rotation, and the text engine. You don't know how much I learn from you. I love learning so thank you so much Griffpatch! PS. Your biggest influence to me was the forever loop with a send broadcast. and use it to loop all sprites simultaneously, so I would only have 1 forever loop block in my project. And I've been using it ever since! It saves me from a lot of lag and it even helps me organize my codes (like what block will trigger first or last on the entire project)!

    @instinctdiff7765@instinctdiff7765 Жыл бұрын
    • Yes, that was a great help to me too when I worked it out :)

      @griffpatch@griffpatch Жыл бұрын
  • Thank you griffpatch! I now have a trail for my game!

    @AHappyFace_RBLX@AHappyFace_RBLX Жыл бұрын
  • thank you for the tutorial!

    @Jesus...Christ@Jesus...Christ9 ай бұрын
  • This is really helpful! Tysm for the tutorial!

    @caramelmilk1826@caramelmilk1826 Жыл бұрын
  • heh, i actually figured this one out before this tutorial, i saw that the boids used pen for the trails, and the first thing that popped into my mind about how to fade pen was to then overlay a transparent pen dot with a ridiculous size, altho i didnt think of stamping a black screen. Very clever! btw the project that im referencing is called Griffpatch’s Boids AI, its in the scratch studio ;)

    @Jachii9@Jachii9 Жыл бұрын
  • Love the tutorials. You made me a better programmer! 👍

    @WaterhouseFishing@WaterhouseFishing Жыл бұрын
    • Great to hear!

      @griffpatch@griffpatch Жыл бұрын
    • @@griffpatch same

      @ChuckSploder@ChuckSploder Жыл бұрын
  • I Love the Tutorial it can be really cool for fast games. (^Please make more Tutorials I'm excited^)

    @-_-MichaelMike-_-@-_-MichaelMike-_- Жыл бұрын
  • 1:58 If you are using the white background, you can use the 'Change brightness effect by 10' block if you don't want the effect.

    @creeperdoesredstone@creeperdoesredstone Жыл бұрын
    • black background works almost exactly the same, except you need to change by -10

      @win_ini@win_ini Жыл бұрын
    • @@win_ini0:20 griffpatch is says forever not for-ever!

      @abosarry6102@abosarry61026 ай бұрын
  • I used your boids tutorial to make my own version but in JavaScript. I got them all except for the rotation. gladly I can just use arc tan of speedx/speedy. I even made the boids change the hue based on that rotation so it looks like they're colored based on their groupings

    @oso_lacion@oso_lacion Жыл бұрын
    • So cool

      @griffpatch@griffpatch Жыл бұрын
  • I love how he always give explanation about what he does.

    @littlespark0@littlespark011 ай бұрын
  • This is epic! Can't wait to add some to my projects :) Thanks griffpatch

    @Phillip_Anatra@Phillip_Anatra Жыл бұрын
  • Thank you for helping me make a trail because I’ve been trying to do it for a while

    @nicotitan7834@nicotitan7834 Жыл бұрын
  • Can you make for example a “10 scripts that visually spice up your projects” video. I, and probably other people, would love to see this.

    @KiewieGames@KiewieGames Жыл бұрын
  • hey i just have to say that this tutorial is very useful and that ghost part around 1;48 you can choose pixel which does something insane

    @anjponni@anjponni3 ай бұрын
  • I have been pondering this for ages and now I can make it happen

    @heatherwheatley2905@heatherwheatley2905 Жыл бұрын
  • you can also make the trail look cooler by adding a change color effect by 10 block into the custom fade over frames block

    @piedoge5976@piedoge5976 Жыл бұрын
  • I've been looking for this for so long! thank you grifpatch

    @Cofeinny@Cofeinny Жыл бұрын
    • Np

      @griffpatch@griffpatch Жыл бұрын
  • Your videos are always helpful!

    @sansanbanana4397@sansanbanana4397 Жыл бұрын
  • now for the rpg i cant wait. i was starting to make an rpg with clone tiles but then i saw that your making one so i may aswell take some of your tutorial. also can you please upload the projects on scratch so we can backpack it if we dont have enough time to make it ourselves

    @idiot_from_nowhere9272@idiot_from_nowhere9272 Жыл бұрын
  • I really wish you could choose which layer you were stamping on so certain pen effects could be viewed over other sprites.

    @TylerTolander@TylerTolander Жыл бұрын
    • Just hide the sprie and do forever stamp and then you can draw over it :D

      @hmmm5752@hmmm5752 Жыл бұрын
  • This was extremely helpful when i was making a trail in your lemenoid video

    @mariotasticgamingMARIO@mariotasticgamingMARIO Жыл бұрын
  • these tutorials are amazing! (obviously, you ARE the number 1 scratcher ;) )

    @_KDP@_KDP Жыл бұрын
  • thank you so much i watch many of your videos and it helps me a ton

    @johannsegovia6267@johannsegovia6267 Жыл бұрын
  • This is very simple! But very very SATISFYING!

    @Iminsanealr@Iminsanealr Жыл бұрын
  • THANK YOU!!! I WAS HAVING SO MUCH TROUBLE WITH A FADE BY PEN THING I WAS TRYING TO DO!!!

    @elijahthesponcore7534@elijahthesponcore7534 Жыл бұрын
  • nice video griffpatch!, i will like to see a video that explain about your ragdoll project and how everything there works

    @demoblunt181@demoblunt181 Жыл бұрын
  • I love your tutorials

    @titilayoibazebo6178@titilayoibazebo61787 ай бұрын
  • wow this helped me a lot in my new game - i didnt know how to fade pen sprites + my game is scrolling

    @snakeoviper249@snakeoviper249 Жыл бұрын
  • The trails were also featured in your project "Orbital Velocity v0.2f"!

    @villeolof2000@villeolof2000 Жыл бұрын
  • thx for the tutorial. It really make my boids simulation project a lot better.

    @GamingChair9482@GamingChair9482 Жыл бұрын
  • there is a much simpler way to extend the amount of clones on the trail. all you need to do is go to the repeat 10 loop and change the number 10 to however many clones you want to include in the trail.

    @z00ber54@z00ber54 Жыл бұрын
  • Awesome! The fade solution is so simple yet so brilliant, the only downsides I can see is that you can add extra effects like shrinking and color change, etc. And you can't have complex backgrounds. I have a really strange idea, instead of using a single solid color for the fading, what if a small sprite moved across the screen stamping/penning based on the detected color at that location? That way you could have a detailed background & trails! I'm not proficient enough to make it though, but if any smart scratchers out there are looking for a challenge! If anyone does attempt to make something like this please reply with a link whether it works or not! :D

    @Jellyjam14blas@Jellyjam14blas Жыл бұрын
    • you could have complex backgrounds by just making the fader sprite the background i think, but if there are sprites you also want to fade out to then yes, that would be the only option. Check out the colour scanner tutorial he made for a way to do that ( kzhead.info/sun/ZtCzYdKxo4d-nJE/bejne.html )

      @Super_IronMan@Super_IronMan Жыл бұрын
    • :( not me

      @tiash_dev@tiash_dev Жыл бұрын
    • You could solve this by making multiple costumes of the fader Sprite

      @wiseowl83@wiseowl83 Жыл бұрын
  • this is really helpfull

    @user-ew9vh1nq6l@user-ew9vh1nq6l9 ай бұрын
  • Another great and useful vidéo thanks griffpatch you are the best

    @The_octogamer@The_octogamer Жыл бұрын
  • Haven’t even watched yet but here’s simple code Start |Forever |create clone of myself |wait [insert number] When I start as clone Repeat [insert number] Change ghost affect by [insert number] Wait [insert number] Delete this clone Go nuts with adding things as well

    @shinyian82@shinyian82 Жыл бұрын
  • on Monday I made the exact same thing and I had no idea griffpatch was gonna do this :D

    @lego_man_epic@lego_man_epic Жыл бұрын
    • He he :) nice

      @griffpatch@griffpatch Жыл бұрын
  • Brilliant tutorial, thank you.

    @shahidrasool1414@shahidrasool1414 Жыл бұрын
  • Very smart, thanks a ton griffpatch!

    @pessskychaos4874@pessskychaos4874 Жыл бұрын
  • Thanks for tutorial! Nice!

    @JMS-ji3qp@JMS-ji3qp9 ай бұрын
  • In the script for fader sprite you used the stamp block inside the forever loop. The conclusion is that the loops in Scratch work with a certain delay, because the cat trails are visible.

    @kacpersztejna8303@kacpersztejna8303 Жыл бұрын
    • Yes indeed - A repeat loop outside of a "run without screen refresh" will always pause for the screen to update before looping back around. That's 1/30th of a second

      @griffpatch@griffpatch Жыл бұрын
  • Amazing! Btw I will today or tomorow become a channel member!

    @Milan12234@Milan12234 Жыл бұрын
    • Wow that would be amazing!

      @griffpatch@griffpatch Жыл бұрын
  • Bro this is really cool. Also, i like more clones, because they can be deleted by One by One, but the stampings no.

    @someonenamedgreen@someonenamedgreen Жыл бұрын
  • That's cool, I learn something more for my starting scratch.

    @TechArtsWithEli@TechArtsWithEli Жыл бұрын
  • I made the trail effect in the boids project before this video even released, with the same technique!

    @GooseOnoob@GooseOnoob Жыл бұрын
  • Thanks! This will help in future projects!

    @StrawberryBunnyCake.@StrawberryBunnyCake. Жыл бұрын
    • Hope so!

      @griffpatch@griffpatch Жыл бұрын
  • I’m learning javascript and i’m excited to see what i can do!

    @koji4884@koji4884 Жыл бұрын
  • Amazing Tutorial!

    @NiceGames150@NiceGames150 Жыл бұрын
  • Hey griffpatch is it possible to make customkeyboard combination? (and will you ever going to release the book?)

    @user-hs3rw1uc6t@user-hs3rw1uc6t Жыл бұрын
  • thank! it's helpful! keep it up! ^-^

    @bacon-sandwich2010@bacon-sandwich2010 Жыл бұрын
  • Thanks, griff for making this video

    @tabb3677@tabb3677 Жыл бұрын
  • This is so cool I wanted to have a trail in scratch 10/10 video

    @Math_god@Math_god Жыл бұрын
  • thank you so much i love your videos you help me alot with coding

    @brokenbloxyt@brokenbloxyt Жыл бұрын
    • No problem :)

      @griffpatch@griffpatch Жыл бұрын
  • You sound like Mumbo Jumbo sounds when he's doing redstone tutorials (that's meant to be a compliment btw)

    @imasdew-fnejkw@imasdew-fnejkw8 ай бұрын
  • I never would have thought of that, although I perhaps should have!

    @CoolRubiksCube@CoolRubiksCube Жыл бұрын
  • I seen the studio yesterday, so I could tell the future!

    @forgedinfaithfarmboys8092@forgedinfaithfarmboys8092 Жыл бұрын
  • Really love this. :)

    @Twin138956Productions2019@Twin138956Productions2019 Жыл бұрын
  • I remember that I was done it before in a project that has a ball bouncing with a super high speed.

    @datoto01@datoto01 Жыл бұрын
  • can you do a video explains how some complex blocks work like maths opertators and custom blocks/variables that are more complex ☺️

    @rapid_sivel@rapid_sivel Жыл бұрын
  • Missed opportunity to make this tutorial while using the mouse trail thing :)

    @nonexistence00@nonexistence00 Жыл бұрын
  • wow another awsome tutorial :D

    @malachaitownsend272@malachaitownsend272 Жыл бұрын
  • I wanted to make a trail of eggs that follows Yoshi around like the original games, so I'll make good use out of this one.

    @lemmy15yt@lemmy15yt Жыл бұрын
  • can you make a video on how to add this into a scrolling game?

    @KathyT-du4zz@KathyT-du4zz9 ай бұрын
  • this is awesome!

    @halfbraincelled@halfbraincelled Жыл бұрын
  • Very nice it made my game a lot better

    @Username-mp8jl@Username-mp8jl Жыл бұрын
  • Awesome tutorial!!! But I found a problem sometimes on devices, such as Mac, you sometimes see the tail left from the trails.

    @YouthExploreStudy@YouthExploreStudy Жыл бұрын
  • great, this helped me a lot

    @adamyamg7975@adamyamg7975 Жыл бұрын
  • That looks pretty cool

    @CoolRubiksCube@CoolRubiksCube Жыл бұрын
  • Thanks Griffpatch!!

    @JustAnKangaLover@JustAnKangaLover Жыл бұрын
  • Can you please make a tutorial on how to make appel. Ik it will be a really long series but please it will mean a lot.

    @Lukex305@Lukex305 Жыл бұрын
  • My guy is a legend in the scratch community

    @sonic176yt7@sonic176yt7 Жыл бұрын
  • hi griffpatch, i've been following your tutorials for a wihle now and i'm working on this platformer game on scratch (though im still a beginner), and i've been wondering if you could make a tutorial on how to make a tail of some sorts onto an enemy AI that could either follow you or follow a certain path (similar to how you did on your snail game) (if you decide to make one you can choose which you want to make a tutorial about), i've seen how other people do it and they all do it with pen, but have jumbles of other code that i can't follow, so maybe you can make one so it'd be easy to follow?

    @yz2949@yz2949Ай бұрын
  • If we combine this with some lists we can record how to play the project for some enemy ai, editor improvement or an in-game tutorial 🤔

    @poka26ev2@poka26ev2 Жыл бұрын
  • Yo griifpatch you’re the person who inspired me made Me a man tysm

    @PenguinBuster0725@PenguinBuster0725 Жыл бұрын
  • Thank you griffpatch

    @titilayoibazebo6178@titilayoibazebo61787 ай бұрын
  • THANKS FOR THE AMAZING TUTORIAL griffpatch

    @artubevibes12@artubevibes12 Жыл бұрын
    • Glad you liked it!

      @griffpatch@griffpatch Жыл бұрын
  • hey griffpatch about that last time i told u about that spider boss it cant be backpackble? u said

    @dhiyak.s5611@dhiyak.s5611 Жыл бұрын
  • This guy is literally can do and solve anything.

    @igorfire13@igorfire13 Жыл бұрын
  • Hey Griffpatch! I am currently working on an RPG game on Scratch and your Devlogs have been really useful for me! It would be really interesting to get some tutorials for rpgs! Kind of like the Mario game! No pressure though! It's just a thought and I would really appreciate it if you do so but it's still your choice and you don't have to do it! :D

    @waterylemon6880@waterylemon6880 Жыл бұрын
    • He's working on it right now.

      @caseyyeow1649@caseyyeow1649 Жыл бұрын
  • griffpatch shows ordinary things from an unusual side!

    @-andye-5515@-andye-5515 Жыл бұрын
  • how do u make it so the trail is a line that fades

    @bonditwins4779@bonditwins47798 ай бұрын
  • ive made a quick version that looks smoother with bigger gaps and also a green trail that follows instead of the cat repeating

    @sniperreaper10@sniperreaper10 Жыл бұрын
KZhead