CRAZY COOL JOYSTICKS 🎮 - How to make your Scratch Games Mobile Friendly

Поделиться
HTML-код
  • Опубликовано: 12 июл 2024
  • Do you want to make your games mobile friendly, learn how to code an awesome reusable mobile joystick (thumbstick) by following this tutorial and you'll be playing your Scratch Games on your phone or tablet in no time!
    Scratch works great with mouse and keyboard, but showing off your hard work to a friend on your mobile can be really frustrating unless you have the best mobile controls. That's where this tutorial will help! Once coded you can backpack the controller script and drop it into all your favorite games!
    My tutorials are for all budding game & software developers using Code Blocks. Scratch On guys!
    🚀 Boost Your Creativity with Griffpatch
    The Griffpatch Academy will take you from "Gamer to Game Creator"
    Learn more at 👉 griffpatch.academy 👈
    😺 Scratch was developed by the Lifelong Kindergarten Group at the MIT Media Lab. See scratch.mit.edu
    👀 NEW Multi Touch Joystick Tutorial !!! - • Impossible "Multi-Touc...
    🐱 Scratch Studio for this tutorial - scratch.mit.edu/studios/31206...
    👀 Quick and Fun Tutorials - • Quick and Fun Scratch ...
    ⭐ Projects Featured in this video
    Click and Jump [ A Platformer ] - scratch.mit.edu/projects/6327...
    Slither.io v1.10 #games #all #game #trending #s - scratch.mit.edu/projects/6426...
    Potatoid Invasion v1.3 - scratch.mit.edu/projects/5547...
    Scratch Fly | Mega Game | #Games #Trending # - scratch.mit.edu/projects/6291...
    Snowy town - teeeeeeen - Unshared - scratch.mit.edu/users/teeeeeeen/
    -------------Video Chapters-------------
    0:00 Intro
    1:00 Costumes
    2:50 Coding the Joystick Base
    3:20 Code Control Stick
    5:22 Release back to Centre
    6:58 Stick Direction and Power
    9:02 Constrained Distance of Travel
    12:21 Using the Thumb Stick in a Game
    13:45 Thumb Stick Activation Area
    17:45 Stick X & Stick Y
    20:36 Using the STICK X & Y variables in game
    22:14 Bigger Stick for Small Screens
    23:31 Backpack to other Games!
    24:14 Snowy Town by teeeeeeen
    26:15 Click and Jump by ManGold-658
    27:52 Highway Madness! by Games_Central
    28:50 Slither.io v1.5 by SlordWas Taken
    30:03 Potatoid Invasion by Kube_Komix
    32:24 Outro

Комментарии • 2,5 тыс.

  • @griffpatch
    @griffpatch  Год назад +109

    New Multi Touch Tutorial - ruclips.net/video/cI1mdVVvCWY/видео.html 🔥🔥🔥
    Early Access / Channel membership - www.youtube.com/@griffpatch/join
    Scratch Studio for this tutorial - scratch.mit.edu/studios/31206995/comments
    Quick and Fun Tutorials - ruclips.net/p/PLy4zsTUHwGJKByTn_qV76oTpEYGczqEb_

  • @chiroyce
    @chiroyce 2 года назад +64

    I loved the section where you implemented it in others' games, much fun! :)

    • @BuzzyBee13
      @BuzzyBee13 2 года назад +1

      Chiroyce, what are you doing here?

    • @izaanhafid
      @izaanhafid 2 года назад

      @@BuzzyBee13 LOL

    • @maplario4366
      @maplario4366 2 года назад

      Woah, Chiroyce!

    • @BuzzyBee13
      @BuzzyBee13 2 года назад

      @Samfitzgamer, what are you doing here?

    • @BuzzyBee13
      @BuzzyBee13 2 года назад

      @Samfitzgamer Hehe, ok I'll stop. But watch Twishorts to see where I get it.

  • @DrAlphys2
    @DrAlphys2 Год назад +6

    I actually had to shorten the scripts, but got the same results !! Well done Griffpatch!!

  • @braysonrosenberg4940
    @braysonrosenberg4940 Год назад +19

    Hey Griffpatch! I just wanted to say thank you so much. Im currently making a game and you have really helped me with these tutorials. In fact, i would be completly lost on how to even properly code the PHYSICS ENGINE without you. So yea, keep up the good work, and thank you again! :)

  • @thecyanghost1889
    @thecyanghost1889 2 года назад +31

    I always love how goofy yet entertaining your videos are! while I doubt I'll make a mobile game, this is still helpful

  • @quickshark9536
    @quickshark9536 2 года назад +11

    When you made it to where you could only use the joystick by clicking on it WITHOUT “when this sprite clicked”, it actually helped me with something completely unrelated. I was making a mobile keyboard for a Morse Code translator, but had tons of buttons that I wanted to keep on one sprite. Thank goodness I saw this before finishing the code for a whole control-button system. This channel has taught me many ways to avoid big messes. Thanks a lot!

    • @griffpatch
      @griffpatch  2 года назад +5

      That's excellent news, exactly what I hope

    • @immegamewer33457._
      @immegamewer33457._ 5 месяцев назад +1

      O

    • @Ninad145
      @Ninad145 2 месяца назад

      @@immegamewer33457._ Spider man go away from home

  • @CreativeGrow69
    @CreativeGrow69 Год назад +6

    Never stop scratching there are only a few scratch tutorial makers and you are one of the best sadly I don’t know where you get your sprite designs from but that’s not your fault it’s mine for not learning. Keep it up!

  • @markeisha9213
    @markeisha9213 8 месяцев назад +1

    Thank you so much!!! I was making an game where you use your keyboard but I realised I could not test the game on the go. I came across this and tought it was perfect for me as it is easy to understand. It also works very well.

  • @smth35
    @smth35 2 года назад +83

    The same effect could also be achieved by using the "set mode to draggable" block, and "if " then limit the stick, and "if not ", then reset the stick.

    • @griffpatch
      @griffpatch  2 года назад +30

      That is a good idea, but it would be too tricky to ensure the user actually clicked on the stick to start moving it

    • @adrianroqen3743
      @adrianroqen3743 2 года назад +5

      @Zi Zoy Nacho Maybe that works too.

    • @smth35
      @smth35 2 года назад +4

      @@griffpatch moving the stick would be needed only to limit it or reset its position. The "set drag mode [draggable]" block from the sensing category does the work of moving the sprite/clone while it is held.
      Also i realised while writing this that the only difference is you have to move the stick every time you press it, instead of just pressing the area of the stick

    • @joshieree3036
      @joshieree3036 2 года назад +1

      @@griffpatch nice

    • @chivixta
      @chivixta 2 года назад +2

      That’s what I was thinking this video would be about-

  • @lamegamertime
    @lamegamertime 2 года назад +164

    Personally I think if you are using a joystick for a platformer, it’s best to use a square joystick. That way it is easier to run and jump, as the corner where both are possible is larger.
    Though it would be even better if Scratch had some kind of multi-touch capability… It might make things more difficult to code, but it would be easier to play when you can press a separate button for jumping as for running.

    • @griffpatch
      @griffpatch  2 года назад +60

      You are very right! I think just the same thing. Although, by using joystick > 0.5 you actually end up with just such a design in reality :) - And yeah - Scratch should support multi touch somehow!!!

    • @plutosmol
      @plutosmol 2 года назад +6

      @@griffpatch i agree :DD

    • @BOLT_THUNDERSPHERE
      @BOLT_THUNDERSPHERE 2 года назад +2

      I also agree

    • @16.7mtiletheplanet5
      @16.7mtiletheplanet5 2 года назад +2

      @@BOLT_THUNDERSPHERE Agree:D

    • @user-qb4jn2rf2m
      @user-qb4jn2rf2m 2 года назад +2

      How

  • @keanjosephquizon2575
    @keanjosephquizon2575 2 года назад

    Griff, I literally love your vids i get so much more knowledge just by copying them or actually making them thanks so much for getting my code skills up! and also by the way when I was doing the part 3:49 mine actually appeared the thumb stick bc I was doing it in a copy of my game so I can add it on my actually game

  • @sparkbark7640
    @sparkbark7640 2 года назад +1

    This worked great! I put it into my 2d top view style game and was surprised at how easy it was to code. thank you!

  • @SalchiGames_
    @SalchiGames_ 2 года назад +100

    I love how griffpatch sounds more and more excited in every video he makes. Great tutorial!

  • @rishavarya4966
    @rishavarya4966 2 года назад +172

    Who else likes how enthusiastic griffpatch is always makes every second of the vid interesting and fun

  • @King-cobra-creations
    @King-cobra-creations Год назад

    This is the first vid of your channel I've seen and it instantly earned a subscribe from me👍 good job and keep creating amazing vids

  • @astonlifts08
    @astonlifts08 Год назад

    love the little animations they really help explain the programming! thanks griffpatch! love u

  • @TtEL
    @TtEL 2 года назад +11

    I went to the Scratch homepage and saw that you were following "Crazy Cool Joysticks" and thought, "Oh, I guess he posted a video of that." Sure enough, here it is.
    I can't use Scratch on my iPod because there is no Apple app, and the website is too big.
    What a great series. Finally, a break from raycasting!

  • @rocky707
    @rocky707 2 года назад +3

    Thank you so much! I combined this with my platformer game that I am making with your tutorials and it works so well! You are amazing :D (Also, 1000th comment?)

  • @trizzle6053
    @trizzle6053 2 года назад +1

    I’m working on a scratch platform we but I’m on mobile making it so this tutorial really helps also I’m using your platform tutorial videos it really helps thx

  • @fungus0713
    @fungus0713 Год назад +1

    Thank you, it really help me improve, long time ago, I very been trying to do the same as yous but it never worked, thank you, after watching your video, I could do more programing

  • @BlastingBricks2023
    @BlastingBricks2023 2 года назад +4

    Crazy cool... you are undoubtedly the BEST scratcher in scratch! I haven't shared a project with a joystick but I will certainly do it soon!

  • @anilkumarvelayudhanpillai2651
    @anilkumarvelayudhanpillai2651 2 года назад +10

    Just Added the joystick in my classic platformer and tested it with my mobile device! It turned out so well, So smooth and easy to use! Thank you griffpatch! You never fail to amaze me!

    • @griffpatch
      @griffpatch  2 года назад +2

      Great to hear!

    • @cristianospohr69
      @cristianospohr69 2 года назад

      @@griffpatch i agree. also, there is some kind of Pc = mobile type of the mobile controls [5 keys, 3 moving keys[left,down,right], 2 jumping keys [space,up].]

  • @imnot_here9856
    @imnot_here9856 2 года назад +1

    WOW this helps alot! and thank you! ❤️👍

  • @user-yf7sj6wk1y
    @user-yf7sj6wk1y 4 месяца назад

    thank you griffpatch so much !!

  • @thelegoreaper
    @thelegoreaper 2 года назад +122

    This really helped! Ive always failed at joysticks!

    • @thepenguin_1
      @thepenguin_1 2 года назад +2

      same lol

    • @sheluhhvy4572
      @sheluhhvy4572 2 года назад +1

      the problem is the small circle moving out of the big one

    • @Jerraf2p0
      @Jerraf2p0 2 года назад

      Same

    • @danielfeng3991
      @danielfeng3991 2 года назад

      Same :)

    • @jilljohn2638
      @jilljohn2638 2 года назад

      ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓

  • @thenewkoopanetwork7016
    @thenewkoopanetwork7016 2 года назад +46

    Griffpatch: this function is relatively simple
    also Griffpatch: Explains quantum physics and the relative law of black holes in under 40 seconds.

  • @XavierGG-og6vc
    @XavierGG-og6vc Год назад

    Best scratch tutorial, understand easily and specific explanation, keep up the good work

  • @Specising
    @Specising Год назад

    Super now I can put this thing on the platformer game you put into the tutorial (not appel) but the other if I wanna play on mobile thx

  • @Resseguie
    @Resseguie 2 года назад +17

    I love it! I just added a version of this to my Rocket Canyon game (and submitted it to your studio). But I also experimented with only turning on the joystick once they click on the screen so it doesn't get in the way of the game if playing on the computer. Thanks again for a great tutorial (and worth waiting for)!

    • @griffpatch
      @griffpatch  2 года назад +2

      Very cool, I have a small update to make it even better, but that will have to wait

    • @zachcapricorn3512
      @zachcapricorn3512 2 года назад

      For the changing size, maybe add a icon and make it 100 for regular size and 200 for big size or something

    • @Kadyboo5
      @Kadyboo5 Месяц назад

      ​@@griffpatch CHECK YOUR MESSAGES

    • @Scorpiogang-n1d
      @Scorpiogang-n1d 17 дней назад

      Hi

    • @MatthewS-zt9fi
      @MatthewS-zt9fi 6 дней назад

      ​@@griffpatch i love your vids

  • @onyxtautuhi3473
    @onyxtautuhi3473 2 года назад +10

    Wow, I used a completely different technique for a joystick and this is so much more flexible than mine. Mine is so stiff.

  • @xandoog
    @xandoog Год назад

    This is great really useful your tutorials are awesome

  • @baboonist
    @baboonist Год назад

    this really helped thanks!!!

  • @artsygirlforlife
    @artsygirlforlife 2 года назад +4

    I have always wanted to learn how to do this, especially with the growing amount of people on mobile devices. This is really helpful!

  • @Radlee.
    @Radlee. 2 года назад +4

    Oh, yes, yes, yes! The perfect tutorial for a joystick! I'm excited for this one, as I've always been working on mastering my joystick code! Thank you so much again, griffpatch!

  • @proplayz1016
    @proplayz1016 2 года назад

    Thanks! That helped a lot!

  • @tevmonkey7243
    @tevmonkey7243 3 месяца назад

    Thank you so much for this tutorial! i made a game but people wanted it to be mobile too so this helps a lot.

  • @LILGroovyAdam2099
    @LILGroovyAdam2099 2 года назад +3

    I can’t believe your probably one of the only you tubers who is big and uploads consistently I have watched you for u years and you have tought me so much thank you!!!!!keep grinding and doing your thing brotha!!!!

  • @Yeetyok
    @Yeetyok 2 года назад +5

    This is great! I am looking forward to another tutorial like creating an inventory with draggable items.

  • @akimyoun1423
    @akimyoun1423 Год назад

    Worked like a charm

  • @ShadowSamurai14
    @ShadowSamurai14 Год назад

    This was extremely helpful!

  • @webaccount284
    @webaccount284 2 года назад +9

    Hey griffpatch, I think it would be cool if for your next series after 3d raycasting would be a renewed version of your old series, How to make a cloud game. It would be nice with your current editing and microphone!

  • @sophiegarcia2006
    @sophiegarcia2006 10 месяцев назад

    thank you so much i was doing a basketball game i was looking for this now i found so thank you i subscribed to you and liked the video

  • @Onetaro
    @Onetaro 9 месяцев назад

    It will be helpful! I will now use your skills in my work. Thank you :D

  • @zachcapricorn3512
    @zachcapricorn3512 2 года назад +6

    For the going to center thing, use this: Go into 1 sprite then use the go to block to select the sprite, then move the sprite into the Control Stick sprite and tada.

  • @joshieree3036
    @joshieree3036 2 года назад +10

    You don't have to use the MYSELF variable. You can use a scratch bug. Drag a GO TO block into a different sprite, select Control Stick, drag the block into Control Stick.

    • @1ksdavidcksdavidc970
      @1ksdavidcksdavidc970 2 года назад +2

      I got interrupted as I was typing and part of the code I mentioned is missing. I reads "go to x position of control stick, y position of control stick", which is what is in the project I mentioned. BUT, doing it myself now I realize that the project I got that from must have done it by exploiting the "different sprite" trick, so it amounts to the same thing. I guess it's another alternative, though I still wonder how they compare in efficiency. Note, you also need it in the "distance to myself" block. the myself variable is easier to code, but you have to worry about if the sprite name changes.

  • @DoxleyYT
    @DoxleyYT Год назад

    Thanks! This is really helpful! 😄

  • @luckyfunky1178
    @luckyfunky1178 2 года назад

    Amaizing tutorial, it explains every thing slowly and makes every one understand

  • @Farleigh1050
    @Farleigh1050 2 года назад +12

    For a lot of games, on the cat sprite use a ‘set rotation style left-right’ block inside the forever loop, but not in the ‘if Stick Power > 0’ block.

  • @KatOnMelon
    @KatOnMelon 2 года назад +3

    Thank you so much for this tutorial! youre the person who inspired me and got me started!

  • @tamon2020
    @tamon2020 3 месяца назад

    Thanks Griffpatch! I'm make a new game but I need joystick but you helped me!

  • @Arvanplayz
    @Arvanplayz 8 месяцев назад +4

    Thank you i got 1.30$ and 68 people downloaded my game in 1 day!

    • @ImHailey-1605
      @ImHailey-1605 Месяц назад +1

      How

    • @Arvanplayz
      @Arvanplayz Месяц назад +1

      @@ImHailey-1605i put in on appstore

    • @zahraaasadi
      @zahraaasadi 26 дней назад

      اوحهحه 😂 اوقحقه😂اوطحطهحخهجحه😂

    • @mayankyadav621
      @mayankyadav621 14 дней назад

      Great brother 👏🏻

    • @mayankyadav621
      @mayankyadav621 14 дней назад

      But which platform you are using ?

  • @yesimhairy
    @yesimhairy 2 года назад +17

    I think you should do things in other people's code more often, I find this really entertaining for some reason 😅

  • @slooshified_
    @slooshified_ 2 года назад +3

    7:53 i believe theres an alternative way on making it turn 180 degrees.. using join blocks.. basically you use the join block to point toward the negative of the variable

    • @qwertyuiop.lkjhgfdsa
      @qwertyuiop.lkjhgfdsa 9 месяцев назад

      would that work if it was already a negative direction

  • @xxstrawberryteaxxmonsterhi4455

    I love how he just starter Tallinn att licorice. I love this guy’s way to talk

  • @CodingWithAlbert-O
    @CodingWithAlbert-O 9 месяцев назад

    Best tutorial ever ! This video made my game interesting than ever!~

  • @victorius2975
    @victorius2975 2 года назад +7

    somehow you've again made a undercomplicated script that functions the same as a 500 block long script.
    Wondering if you could attempt Binary Space Partitioning though. That'd mean you could make a true 3d engine. And you can also add actual up&down movement without the image weirdly shifting.
    That'd probably make the project run far too slow but a full on 3d engine will being able to have many old gems to be ported over to scratch.
    I know that you've attempted something similar a long time ago but this could be a chance to remake it but extremely easy to port over like the stick and have many extra things like textures and shading.

  • @pe_games
    @pe_games 2 года назад +3

    Easy tutorial, thanks Griffpath! 👏👏👏

  • @Jesus...Christ
    @Jesus...Christ 11 месяцев назад

    your videos are very helpful! thank you

  • @Fumbleer
    @Fumbleer Год назад

    keep the tutorials up and it helps A LOT of people like me! :)

  • @Qoride
    @Qoride 2 года назад +6

    This is perfect! I was just implementing mobile support to my game and I was having trouble with movement. Do you think you can create a tutorial on optimization to reduce project size and make things run faster? (reducing imported file sizes, smart coding, etc. My game runs at around 31 FPS on PC and 20 FPS on my phone but I still have a lot of content to add)

    • @maikeru5187
      @maikeru5187 2 года назад +1

      Scratch runs at 30 FPs, so that's the highest it can run.

    • @Qoride
      @Qoride 2 года назад

      @@maikeru5187 oh thanks, I didn't know that, that was helpful

  • @CommanderAka
    @CommanderAka 2 года назад +4

    5:06 you can add a “set drag mode to not draggable” so you can test the project with no full screen.

    • @griffpatch
      @griffpatch  2 года назад +2

      Sadly not... That only applies to full screen mode. There is a scratch addon extension that supports that feature though.

    • @lumpstergash2380
      @lumpstergash2380 2 года назад

      I tried that with my 3D backrooms game and I dragged the actual entity sprite

  • @nicolaurovira6712
    @nicolaurovira6712 8 месяцев назад

    I am so happy my game works with the Joystick!! Thanks griffpatch so much!!

  • @schlzawg
    @schlzawg 7 месяцев назад

    its cool because everything can be easily customized in the joystick, the look of the base, stick, shape of the base too

  • @Jeregaje
    @Jeregaje 2 года назад +6

    17:21 u can devide the size by 2 and u need to be in the radius of the base to use the joystick and i think it works well!

    • @coolswag352
      @coolswag352 2 года назад

      sorry but *you*

    • @Jeregaje
      @Jeregaje 2 года назад

      @@coolswag352 ?wym

    • @simplylou8631
      @simplylou8631 2 года назад

      @@Jeregaje you said “u” instead of “you”

    • @Jeregaje
      @Jeregaje 2 года назад

      @@simplylou8631 ye ik it is easier

  • @Speed-TV
    @Speed-TV 2 года назад +22

    A tip is that if you want the joystick to always stay in the front no matter what, you can put the go to front layer in a forever loop.

  • @natthananla-orphunphol4395
    @natthananla-orphunphol4395 2 года назад

    Thank you for sharing this. This VDO help me a lot to create new scratch project.

  • @dracolegend8523
    @dracolegend8523 Год назад

    I’m working on the RPG on my ipad and my chrome book so for testing I needed the joystick TYSM for the amazing tutorials.

    • @griffpatch
      @griffpatch  Год назад

      No problem I'm glad to have been of help, scratch on

  • @AshtonDavies_
    @AshtonDavies_ 2 года назад +7

    Griffpatch, you can actually get the control stick position option in another sprite and then drag the block to the stick sprite instead of using a variable.

    • @DoxxTheMathGeek
      @DoxxTheMathGeek 2 года назад +1

      He did it in one of the Tile Scrolling Plattformer Video.

    • @darrickhans9478
      @darrickhans9478 2 года назад

      @@DoxxTheMathGeek And also shiftclicklearn did that.

    • @1080GBA
      @1080GBA 2 года назад

      @@darrickhans9478 did you join his discord?

    • @1080GBA
      @1080GBA 2 года назад

      @@DoxxTheMathGeek and in raycasting pt 5

    • @darrickhans9478
      @darrickhans9478 2 года назад

      @@1080GBA No.

  • @quneptune
    @quneptune 2 года назад +11

    instead of using variable 6:48 you can use the join block like this [ *join* _control stick_ *with* _blank_ ] (you just don't type anything in the blank and delete the pre existing space)
    edit sorry if this is annoying i just hate making new variables unless its necessary

  • @platinumapartmentownersass9164

    This will be great for my RPG project. Thank you so much for this tutorial.

  • @kodingwithkumud4398
    @kodingwithkumud4398 2 года назад

    Love it! Could you tell me what platform you use to add text and edit your videos? It’ll really help!

  • @BusinessMonkeys1
    @BusinessMonkeys1 Год назад +5

    I love how enthusiastic griffpatch is with each video! Also helpful how he explains everything making it easy to make quick tweaks. I was wondering how to do it for your recent scratch RPG series? The movement didn’t seem to work the same for the player. 😢

  • @Farleigh1050
    @Farleigh1050 2 года назад +3

    Scratch: *no you can’t return to base sprite*
    Also scratch: lets us add a variable in the ‘go to’ block which we can set to the base

  • @OperacaoEpa
    @OperacaoEpa Год назад

    My most popular project on scratch is Dan Adventures, and it was based on the great platformer tutorial from griffpatch! Thank you so much.

  • @zenaelbehery9352
    @zenaelbehery9352 2 года назад

    This helped a lot by the way!☺

  • @destructoGB
    @destructoGB Год назад +5

    Hey griffpatch can you tell the scratch team to make scratch multi touch? Thanks.

  • @dubsisthegoat48
    @dubsisthegoat48 2 года назад +3

    Your tutorials are the best :D I also like how you added the joystick in other scratchers games :)

  • @Codey-Quack
    @Codey-Quack Месяц назад

    This Saved me in a Rougelike game im making on scratch where the only thing you need to play is a Mouse, No Keyboard Required. and i was Really struggling with the movement, i did have a method that make a movement block that made it go from movement mode to interact mode but whenever u went to press it the player would move towards the button.

  • @real_ninjaz1255
    @real_ninjaz1255 Год назад +1

    18:48 He Started A Science Class

  • @Speed-TV
    @Speed-TV 2 года назад +6

    Thank you for making this tutorial so the mobile joystick can become more popular, I am tired of those terrible mobile controls where you have to hold a specific section of the screen and stuff.

  • @creepersaur
    @creepersaur 2 года назад +3

    I loved this one, I didn't even realize that there was a simpler way to make a joystick!
    Can you please make a tutorial on how to make your own scratch extensions?

  • @IANG517
    @IANG517 2 года назад

    griffpatch, I really learn alot from your videos thankyou.

  • @jaydenliu2011
    @jaydenliu2011 Год назад +1

    hi griffpatch i have a question. how would you implement a joystick that works like what you taught us, but instead of using if blocks, we use a key x variable(like in your classic platformer tutorial)

  • @faisal2o14
    @faisal2o14 Год назад +97

    2 sec later ROBLOX IN SCRATCH FOR MOGILE

    • @Arvanplayz
      @Arvanplayz 8 месяцев назад +7

      Yea its a roblox moving stick😂😂😂😂

    • @Really101yak
      @Really101yak 8 месяцев назад +8

      Mogile

    • @rstudios123
      @rstudios123 8 месяцев назад +2

      You miss spelled

    • @IkaraPopsicle
      @IkaraPopsicle 8 месяцев назад +2

      I hope not

    • @diehardvn1
      @diehardvn1 8 месяцев назад +2

      2 secs? G’arn m8 r u rekt? No wey you mak gam 3D les tan 2 secs

  • @nia_plays2606
    @nia_plays2606 3 месяца назад +3

    bro My Kaitty is fast??🤣🤣

  • @handyperalta9654
    @handyperalta9654 Год назад

    Thank you since I program on a mobile phone and it will help me a lot🎉

  • @WeLoveScratchCat
    @WeLoveScratchCat 5 месяцев назад

    This was basically a stick power vs max stick showdown. I love it!

  • @asanthimendis
    @asanthimendis Год назад

    You are always so energetic! These guides help me a lot!!!!! Thanks you!

  • @BLACKER_SCREEN
    @BLACKER_SCREEN Год назад +1

    At 20:80 I left the Set STICK X and Y out and it still worked. I think this is because you are multiplying the X and Y by Stick power and when you let go is is set to 0 so its multiplying Stick X and Y by 0 (making it 0). Thank you so much for your tutorial's they have help me start coding on scratch and understanding it.

  • @janetcupp467
    @janetcupp467 2 года назад

    It's really lacking in mobile friendly, I'm so glad to see this💗

  • @bradgleich8514
    @bradgleich8514 Год назад

    i love your videos they are so helpful

  • @HKern-mo1dw
    @HKern-mo1dw 10 месяцев назад

    Tank you, this is really nice.

  • @MrVipulLal
    @MrVipulLal 5 месяцев назад

    Excellent! Thank you very much

  • @GeraldsGangOfficial
    @GeraldsGangOfficial 10 месяцев назад

    6:24 "for this lemon only." XD

  • @Delph4
    @Delph4 Год назад

    Thank you for this tutorial. It helped me in my work a lot.

  • @milankarow6567
    @milankarow6567 2 года назад +15

    Awesome tutorial! This has been a much sought-after feature in our coder dojos! And it's actually much more straightforward than I thought it would be! And what a cool idea to port it to other proj... HOLY COW 24:14 - you have 2.4 MILLION unread notifications?!

    • @griffpatch
      @griffpatch  2 года назад +2

      Awesome - I would be super pleased if this will be of use and is followable enough! Got a bit worried when I used the trigonometry - you could always bypass that by using a (position x - x position of myself) / max stick. That does the same thing in the end... but is a little more wordy.

    • @somebody_2837
      @somebody_2837 2 года назад

      @@griffpatch Agreed

    • @milankarow6567
      @milankarow6567 2 года назад +1

      @@griffpatch yeah, actually the kids can use your implementation as some sort of "library" or component, which is a neat way to introduce the concept of code reuse beyond remixing "complete" scratch projects. I don't necessarily expect them to understand how sine and cosine work (since most of them still have years before they learn it in school), but the joystick sprite will enable them to share their projects even better (since mobile devices are so ubiquitous).

    • @jorsamhan4486
      @jorsamhan4486 2 года назад

      They are probably 75% advertisers

    • @reuellewistansherngvictori2425
      @reuellewistansherngvictori2425 2 года назад

      Ah yes the notifications

  • @lspectroniztar
    @lspectroniztar Год назад +1

    15:01 I ticked the run without screen refresh box lol. What I did was I seperated the script from the repeat until block, and placed the Drag Stick block inside the repeat, just in case, 'cuz it seems SOOOOOO much smarter.

  • @hongnetwork5553
    @hongnetwork5553 Год назад

    Thank you for teaching me about joysticks

  • @luisBlog675
    @luisBlog675 Год назад

    Thank you, Griffpatch, for teaching me about Scratch coding

  • @krishnasairammaddukuri
    @krishnasairammaddukuri Год назад

    I love it it worked so great