Impossible "Multi-Touch" Joysticks!!! 👉📱👈 Mobile Friendly Scratch Coding Tutorial
Learn how to code a Mobile friendly, Multi Touch Joystick in Scratch - Until recently thought impossible - Today you will see it come true in the form of a dual touch thumbstick and button controller combination for movement while jumping / shooting / or other action of your wish. Now we can move and shoot at the same time!!! Awesome!
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!
🔥 Early Access / Channel membership
www.youtube.com/@griffpatch/join
🐱 Scratch Studio for this tutorial
scratch.mit.edu/studios/32540...
👀 Quick and Fun Tutorials
• Quick and Fun Scratch ...
⭐ Projects Featured in this video
The Floor is Lava - scratch.mit.edu/projects/7671...
Appel - scratch.mit.edu/projects/6091...
Classic Platformer - • Code a Platformer Game...
❤️ Scratch Addons - scratchaddons.com/
-------------Video Chapters-------------
0:00 Intro
0:51 Mouse Events & Multi Touch
2:27 The Stick Sprite
5:44 The Player Sprite
7:27 Mobile Stick Costumes
8:39 Detecting the First Touch Event
11:12 Tracking Stick Movements
12:53 Limit the Stick range from -1 to 1
14:16 Stick Auto Centring
14:56 Multi Touch Support
17:13 Mouse Up is not the end
18:55 Dead Zone
20:45 The Stick Costumes
21:29 Clone the Stick from the Base
22:09 Reflect the Stick Movements
23:41 Stick Button Costume with "Click to Activate" Message
26:26 Adding to the Classic Platformer
27:45 Outro
Пікірлер: 757
I can't believe you already have so many subs! Everyone in the scratch community appreciates you representing us for not just being a bunch of kids on a kids website. Edit: I meant he’s only been making tutorials for a couple of years. Also, 200k+ is a lot for just that much time (OF POSTING TUTORIALS)
@fanOfMinecraft-UAs_channel
Жыл бұрын
I sometimes wonder, what if more cool scratchers, like for example ggenije had KZread channels. (ggenije is great 3D game scratcher)
@kylekartgaming
Жыл бұрын
already? it says he made his channel in 2009 :skull:
@NaraSherko
Жыл бұрын
That's what it is
@TETNTM
Жыл бұрын
ikr lol
@MellowJelloFellow
Жыл бұрын
KEEP THE LIKES ON THIS GUYS COMMENT AT 69!
I like how he can explain advanced things from scratch in a beginner-friendly way.
@aamirhossein7321
Жыл бұрын
I agree, for something that seems like would take ages to code, he makes it in half an hour like nothing.
@user-rt7ip4vi4g
4 ай бұрын
this is true. I've tried to make platformers before, i always make them harder than they need to be.
i can't even explain how thankful i am. people wanted a mobile version of a game i'm remaking, but for the super-charging ability, it needed multi-touch controls but i had no clue how to do that. and this is just what i need!!!
oh my god! teacher, i was trying to do this myself for my game but never could. i even gave up coding on scratch entirely! you, teacher, came at the perfect time. thank you ❤
@griffpatch
Жыл бұрын
Glad I could help!
@Nuvora.OFFICIAL
Жыл бұрын
@@griffpatch Where can i get the joystick from? Can you give me the link to the project of the joystick?
@ProgrammerPenguin
Жыл бұрын
@@Nuvora.OFFICIAL you could try following the video and make it yourself :)
@ProgrammerPenguin
Жыл бұрын
@@griffpatch omg! you replied! wow!
@ddshow8873
Жыл бұрын
@@ProgrammerPenguin yeah he did
Being a kid, learning how to code on scratch to comeplete my dream as a game dev, your tutorials *ALWAYS* help!!
@itsmearuba9013
Жыл бұрын
and KZread kids still has gaming videos and popular KZreadrs so yeah
@eggface8260
Жыл бұрын
KZread kids = poo KZread = rule KZread kids = no gud contend KZread = epik pro gamer content
@oscarvela3082
Жыл бұрын
yea. me too.
@NowNormal
Жыл бұрын
"Being a kid, I can't spell correctly." That actually makes sense.
@retrohill5848
Жыл бұрын
Same, well technically early teenager but still.
Hey griffpatch, I am Coderzer in Scratch. I learn from you tutorials. Thank you very much. I have also made APPEL JOYSTICK using your Appel project, AND your joystick tutorial. I really needed this tutorial as In level 5, there is an area in which you have to jump and crouch at the same time. SO, THANK YOU VERY MUCH.
this just changed scratch forever. mobile games doesnt have to be limited to one finger only and that opened doors to so many more games mobile scratch games can be. although there are still annoying problems like scratch unable to detect when the analog is unpressed, its still shocking to me that something scratch physically limits you to do can now be worked around. I have no doubt in the future that multi touch controls will eventually be completely figured out. I love how griffpatch always give credit to the original. the amount of efforts griffpatch puts in these tutorials is unbelievable. this is literally better explained than online crash courses that you have to pay to watch.
I have been watching this for 2 months and each episode teaches me so much while not be complicated
Insane how scratch breakthroughs are still being discovered to this day. Amazing.
@fanOfMinecraft-UAs_channel
Жыл бұрын
LOL. Imagine being scratch team employee when you realise that people on scratch are smarter then you think. Seriously, scratch has so many things, that weren't intended to be there, but they are. Like 3D projects. I think that they need to create scratch addons that'll allow these things, which are now done so strangely, can be made. Like I discovered scratch addon for sound bar!
@12newangels
Жыл бұрын
@@fanOfMinecraft-UAs_channel yeah and i recently utilised the makey makey extension to read string inputs which i didnt know it could on a keyboard lol
@fanOfMinecraft-UAs_channel
Жыл бұрын
@@12newangels I don't know if I'm thinking about correct thing, but that's when you put "join " block and spell the word?
@codingpileofdirt
Жыл бұрын
Speaking of breakthroughs, I'm not sure if this counts but if you set the color effect from Looks to Infinity, you'll get a black and white effect. You can also make a slider for this by placing a normal sprite in front of the original with the same costume, and by using the ghost effect with a "slider" variable on said normal sprite.
Griffpatch , when i saw your post about multitouch in scratch i was excited, I'm a mobile scratcher and it brings me joy that you made this tutorial
I just became a member for this and it was worth it. Thank you Griffpatch!! 🙏🏻
@griffpatch
Жыл бұрын
Awesome! Thank you!
@Radioactivemeness
Жыл бұрын
I want to become a member, but I don't have money, so when I'm bigger ill join :D
@lzr_music
Жыл бұрын
@@Radioactivemeness your not american right?.. :D
@Radioactivemeness
Жыл бұрын
@@lzr_music no, why?
@lzr_music
Жыл бұрын
@@Radioactivemeness i know it from your english.🤓
i just saw this 2 days ago, but still, I just feel like scratch needs to hire you because of your skills of coding.
I want to let you know that your tutorials have been very helpful to me thanks a bunch Griffpatch!! 🙏🏻.
This explanation is REALLY helpful!
YESSSS!! YOU ARE A LEGEND- I SPENT TWO MONTHS STRESSING ABOUT THIS!!!
Great video as always! my friends who can't code make fun of scratch until I show them one of your games you've made and they're left speechless and in disbelief😂
@TwomuchRed
Жыл бұрын
lmao
YES A NEW VIDEO I'm excited to watch!
OH MY GOSH. JUST IN TIME! NY GANE NEEDS THIS SO MUCH. THANKS YOUYU
Ever since you uploaded that joystick video I’ve been needing this *THANKS!*
@paperbagman9012
Жыл бұрын
Oh my gosh I would have never expected griffpatch himself to see this, wow!
Going to be so nice seeing platformers finally use decent mobile controls
Thank you for making a mobile friendly tutorial. It helped me make a mobile friendly test on scratch, for my new game😊.
so long since I watched your videos. This is crazy cool
I KNEW this was possible I am so glad you figured this out
Griffpatch, you're amazing! I can't believe you have already over 200k subs! I think I stand for everybody when I say that your the best!
OMG I was waiting for it!
Scratch only handles last finger click to enable/disable Cursor mode. Cursor mode is when you want to move the cursor to a point in the stage while saying "false" for the mouse down
My goodness gracious! This is lit Insane! Superb vid! You're the best teacher ever.
I'm considering becoming a member, because I really want to support these awesome videos you make!
@griffpatch
Жыл бұрын
That would be awesome :D
7:22 had m e wheezing lol, brilliant tutorial griffpatch (and scratchy)
Nice! Griffpatch makes such nice games for us! Thank you so much I appreciate it 🎉
Finally, I can now test my platformer in my tablet. Thanks griffpatch!
Thank you griffpatch for explaining the method I found! I can’t wait to see what people do with it! Scratch on :D
@griffpatch
Жыл бұрын
So good, and thank you for sharing it!
@asheep7797
Жыл бұрын
The legend.
@FunnyAnimatorJimTV
Жыл бұрын
@@griffpatch GRIFFPATCH CLOSE COMMENTS ON YOUR PROFILE NOW
@FunnyAnimatorJimTV
Жыл бұрын
Ok it's fine now
I love the way you succed to optimize the code in all your videos !
i never thought this was possible, but griffpatch is the one who single handedly turned scratch into a gaming platform
@scaptee
Жыл бұрын
Well, he's the same person who made Minecraft in scratch
@CMM47
Жыл бұрын
@@scaptee you mean 2D minecraft?
@scaptee
Жыл бұрын
@@CMM47 yep
@CMM47
Жыл бұрын
@@scaptee that doesn't count, that's a simple platformer
@scaptee
Жыл бұрын
@@CMM47 yes, but it contains inventory, dimensions, block breaking. It's not really the best, but still a monumental achievement.
Insane! Griffpatch, thanks for the tutorial =D. Love it, it upgraded my game XD. And also thanks for inviting me to your studio!
@elithelegobrick
Жыл бұрын
???
Wow! You finally solved a Hard puzzle. Well done 👍😀
Thank you Griffpatch! I didnt know this!
So happy to see a new video!!!
This helped me a lot, thank you!
@griffpatch
Жыл бұрын
You're welcome!
This is awesome ! ❤
Wow, Griffpatch! You continue to blow me away with things I never though possible! I noticed in the intro you said there was no way to achieve proper multi touch in NATIVE Scratch. Is there a way outside of native Scratch, such as a custom turbowarp extension, which makes actual multi touch possible?
Griffpatch. I love your tutorials and projects on scratch. Especially, the tutorial about platformers. You inspired me on scratch. You are my hero
@griffpatch
Жыл бұрын
Glad you like them!
@ddshow8873
Жыл бұрын
@@griffpatchThank you
@ddshow8873
Жыл бұрын
@@griffpatch Please can you make an endless runner game and tutorial
@ddshow8873
Жыл бұрын
@@griffpatch and can you check scratch more often
This tutorial is great. I will use it to make a scrolling game or a platformer
This is just... wow. Having no multi-touch support has been one of my problems about Scratch for so long, thank you for sharing this! Though, do you think Scratch will support multi-touch in the future? It would open up so many new possibilities.
@griffpatch
Жыл бұрын
I really hope so...
Bro, still can't believe that there are people this talented and share there passion with others
2:32 I love that XD
Insane clever! :O I search for this so long and finally i found it!
@tigertut2410
Жыл бұрын
Hallo, du bist ja auch hier auf KZread xD
@Stunt7
Жыл бұрын
@@tigertut2410 Ja, hallo! XD
@tigertut2410
Жыл бұрын
@@Stunt7 Lol
This is incredible and will make my game run so much better on mobile. In my original game, you had to punch pulling down on the joystick, now I can make a dedicated button for it
@griffpatch
Жыл бұрын
Yeah - this opens up a lot of interesting ideas!
This is really helpful!
Thank you! This will be very useful for mobile games!
@griffpatch
Жыл бұрын
You bet!
My first time seeing a member-only vid on the channel's page.
@griffpatch
Жыл бұрын
Lol - All my videos are member only for a short period - It's called Early Access for members only :) - But nothing stays members only for long
@asheep7797
Жыл бұрын
@@griffpatch btw can you help me with the image scanner? It breaks at Scan 2. It's called "Scan 2, fail"
This tutorial is great and excellent!
Wow that was great. I liked how this turned out amazing.
@griffpatch
Жыл бұрын
Glad you liked it!
Awesome as always ! Would love to see a tutorial on a turn based game like Pokemon :D
@i_am_hash999
Жыл бұрын
SL Smart Mind? i like ya vids
Extremely helpful
Griffpatch I figured out a way to have infinite clones. Basically you have to use the clone how ever you want. However you do need an extra list and a variable to store the id x and y of the clone. Then you stamp and delete the clone every other frame. And you can have multiple of these clone juggles
Good work griffpatch 😄
amazing turtorial!!
I know this isn’t relevant to this video, but I do hope you do continue on with the Code A Platformer Game series! It’s been such a while and I’ve been awaiting the next one. After Episode 13: Jump through platforms! , I’ve been waiting a new one, but nothing yet. The rpg series is nice too! Love it a lot! But I hope you branch back into the Code A Platformer Game series. Support you forever!
THIS IS SO COOL! I hope someone figures out multiple full joysticks in the future
Hi Griffpatch I tried to make a Jump Button for jumping But every time i need to end the touch from the Joystick just to press the jump button and to jump But now I have a solution thanks to you :) Thank u for helping me
I have made this joy stick,and it was great!
It's so usefull, thanks!
Griffpatch, your videos are so amazing, and they inspire me to get scratching every day of my life!
@griffpatch
Жыл бұрын
So glad to hear that!
Thank you so much for the tutorial
Literally this affects the UI for my combat flight sim plans.
THIS IS WHAT I WANTED!
Man I use. Your tutorials when I was first doing scratch
FINNALY!!!! THANK YOU
This would go great with my Platformer. Will do it once im home.
Thanks for making my school assignments so much easier!
@DJruslan4ic
Жыл бұрын
**Giggles a bit** Does your homework involve making a platformer that is mobile friendly? **Giggles a bit more**
@crazychicken8290
Жыл бұрын
@@DJruslan4ic No but his other videos helped me a lot!
Cool! Keep it up!!
woah griffpatch you are so cool and thanks for the great tutorial .
Apparently, when you are moving using left controller, you can literally press/tap anywhere on the screen for the jump motion. Not just on the button on the right, whether this is intended or not. Maybe perhaps we could investigate a fix so that only the button must be tapped to jump? I feel like the right button may be useless if you can just tap anywhere to make it jump. Otherwise, I really love the idea of multi-touch, and you make such great tutorials! Though I guess there is only so much you can do with a limited touch mechanic that Scratch has.
@minkiyina
8 ай бұрын
i mean you can always use turbowarp's extesion sensing+
you should real consider continuing this series
Griff, I LOVE YOU!!! You are a genius!🗿🍷🤯
It's pretty cool that Griffpatch can figure out useful tricks like these, but this only made me realise that Scratch is far from being truly mobile friendly, and if anything, it's definitly more tablet friendly than it is mobile friendly( I learned that the hard way). I suggest they make mobile versions of Scratch, or fix all the features that make Scratch not mobile friendly.
I haven't even watched this yet, but I think it is using "for this sprite only" variables. I also think each sprite is checking on alternating ticks. It's either that or you used clones and in the "when I start as a clone" block, you put checks in there. But, knowing you, it may be a little more complicated than that 😁.
This guy's tutorials are never boring!
@gammingwin895
Жыл бұрын
I agree
@Appel-xd6cd
Жыл бұрын
True
Yay wow thanks gruff patch now this is fun for rpg series as if I wanna attack in rpg
another great tutorial!, i have been here since 40k subs
@griffpatch
Жыл бұрын
Legend!
@c0dered111
Жыл бұрын
@@griffpatch btw i really like the paper minecraft one :)
@Tealen
Жыл бұрын
ive known him since 2015
Thank you ❤❤ very help
Thanks im a new sub❤
Hey, I am really getting helped by all of your vids, THANKS A LOT !!! ☺️☺️ Also I wanna ask a thing if we could make both the buttons independent, i.e. both the buttons are functional even when one of them is not pressed..... If there's a solution to this and you would make a video on it, then I would be definitely more grateful to you than ever.....😊😊
Bruh, I was watching at 360p thinking that it was your phone's bad quality... 1080p is impressive for a phone!
Wow, what an informative and well-made video! I really enjoyed learning about how to create multi-touch controls using the Scratch block programming language. Your explanations were clear and easy to follow, and it's great to see the finished project in action. I'm sure this tutorial will be really helpful for those looking to add this feature to their own Scratch projects. Keep up the excellent work! - ChatGPT
@NoktarYoutube
Жыл бұрын
hehe
@mr_goofy_man
11 ай бұрын
lol
Omg this is so cool!
I’m absolutely blown away HOW IN THE WORLDDD???
this si so cool, cant wait to make something amazing, or another amazing tourorial on the project, I sometimes let go, and the joystick doesnt move back to the center, or the button doesn't work sometimes...
Idea 1: add portals that can teleport you through the same scene or difference scene Idea 2: add jump orbs that when you click them and are touching them mid air you jump but if you dont click you go through
Hello Griffpatch, the tutorials you make are insane! Even my teacher loved to watch your mindblowing videos but I tried 60fps in the classic platformer and the player was as fast as Sonic, we really need a delta timing tutorial griffpatch
I'm the first one , i know I'm not but i am a not a membership so i am a non membership first
@eryscalamitas1611
Жыл бұрын
You are among the four first non membership people here
@1080GBA_SC
Жыл бұрын
U sure u are the first
@ChatkarewithKalpana
Жыл бұрын
@@1080GBA_SC yep
@HyperDevv
Жыл бұрын
Why u non member
@lordofstuff8656
Жыл бұрын
No vozify is the first and the first non-membership
frankly I was bad for scratch now I'm strong thank you griffpatch
I don't know how you're so smart, you're like god you know very thing I don't even know how to do one simple game.
wow this so good!
I smached the subscribe button for you!
I am now tempted to make a mobile control template with a bunch of features
this is so cool! I'm probably going to use this in the future. did you ever make a text engine part 4? I think you said it was going to come out in a few weeks in the comments on the previous text engine tutorial
@griffpatch
Жыл бұрын
Must get round to that!
@dracodragonist2556
Жыл бұрын
@@griffpatch :O awesome!
OK THIS IS AMAZING
Another awesome vid thx griffpatch, just one question where are we going to add more to the rpg project I can’t wait to continue thank you again and keep up the good work
@griffpatch
Жыл бұрын
We'll have to see - The last RPG video didn't do well at all view-wise... So I'm a bit sad about that.
@The_octogamer
Жыл бұрын
@@griffpatch maybe add npcs in the next tutorial should get peoples attention also the attack animation maybe add that as well