Impossible "Multi-Touch" Joysticks!!! 👉📱👈 Mobile Friendly Scratch Coding Tutorial
HTML-код
- Опубликовано: 7 авг 2024
- 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!
🚀 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
🐱 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
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)
I sometimes wonder, what if more cool scratchers, like for example ggenije had RUclips channels.
(ggenije is great 3D game scratcher)
already? it says he made his channel in 2009 :skull:
That's what it is
ikr lol
KEEP THE LIKES ON THIS GUYS COMMENT AT 69!
I like how he can explain advanced things from scratch in a beginner-friendly way.
I agree, for something that seems like would take ages to code, he makes it in half an hour like nothing.
this is true. I've tried to make platformers before, i always make them harder than they need to be.
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 ❤
Glad I could help!
@@griffpatch Where can i get the joystick from? Can you give me the link to the project of the joystick?
@@Nuvora.OFFICIAL you could try following the video and make it yourself :)
@@griffpatch omg! you replied! wow!
@@ProgrammerPenguin yeah he did
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.
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!!!
Being a kid, learning how to code on scratch to comeplete my dream as a game dev, your tutorials *ALWAYS* help!!
and RUclips kids still has gaming videos and popular RUclipsrs so yeah
RUclips kids = poo
RUclips = rule
RUclips kids = no gud contend
RUclips = epik pro gamer content
yea.
me too.
"Being a kid, I can't spell correctly."
That actually makes sense.
Same, well technically early teenager but still.
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😂
lmao
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
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 saw this 2 days ago, but still, I just feel like scratch needs to hire you because of your skills of coding.
Insane how scratch breakthroughs are still being discovered to this day. Amazing.
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!
@@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
@@12newangels I don't know if I'm thinking about correct thing, but that's when you put "join " block and spell the word?
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, 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!
YESSSS!! YOU ARE A LEGEND- I SPENT TWO MONTHS STRESSING ABOUT THIS!!!
7:22 had m
e wheezing lol, brilliant tutorial griffpatch (and scratchy)
The last time you said,"for this lemon only." Got me laughing 😆
so long since I watched your videos. This is crazy cool
OH MY GOSH. JUST IN TIME! NY GANE NEEDS THIS SO MUCH. THANKS YOUYU
Thank you for making a mobile friendly tutorial. It helped me make a mobile friendly test on scratch, for my new game😊.
I want to let you know that your tutorials have been very helpful to me thanks a bunch Griffpatch!! 🙏🏻.
My goodness gracious! This is lit Insane! Superb vid! You're the best teacher ever.
Insane! Griffpatch, thanks for the tutorial =D. Love it, it upgraded my game XD. And also thanks for inviting me to your studio!
???
YES A NEW VIDEO
I'm excited to watch!
Going to be so nice seeing platformers finally use decent mobile controls
Awesome as always !
Would love to see a tutorial on a turn based game like Pokemon :D
SL Smart Mind?
i like ya vids
Ever since you uploaded that joystick video I’ve been needing this *THANKS!*
Oh my gosh I would have never expected griffpatch himself to see this, wow!
I just became a member for this and it was worth it. Thank you Griffpatch!! 🙏🏻
Awesome! Thank you!
I want to become a member, but I don't have money, so when I'm bigger ill join :D
@@Radioactivemeness your not american right?.. :D
@@lzr_music no, why?
@@Radioactivemeness i know it from your english.🤓
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.
I really hope so...
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?
I'm considering becoming a member, because I really want to support these awesome videos you make!
That would be awesome :D
Nice! Griffpatch makes such nice games for us! Thank you so much I appreciate it 🎉
This explanation is REALLY helpful!
Thank you griffpatch for explaining the method I found! I can’t wait to see what people do with it! Scratch on :D
So good, and thank you for sharing it!
The legend.
@@griffpatch GRIFFPATCH CLOSE COMMENTS ON YOUR PROFILE NOW
Ok it's fine now
Finally, I can now test my platformer in my tablet. Thanks 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
You are among the four first non membership people here
U sure u are the first
@@1080GBA_SC yep
Why u non member
No vozify is the first and the first non-membership
Good work griffpatch 😄
Griffpatch. I love your tutorials and projects on scratch. Especially, the tutorial about platformers. You inspired me on scratch. You are my hero
Glad you like them!
@@griffpatchThank you
@@griffpatch Please can you make an endless runner game and tutorial
@@griffpatch and can you check scratch more often
Wow that was great. I liked how this turned out amazing.
Glad you liked it!
Griffpatch, your videos are so amazing, and they inspire me to get scratching every day of my life!
So glad to hear that!
OMG I was waiting for it!
Wow! You finally solved a Hard puzzle. Well done 👍😀
Insane clever! :O I search for this so long and finally i found it!
Hallo, du bist ja auch hier auf RUclips xD
@@tigertut Ja, hallo! XD
@@Stunt7 Lol
I KNEW this was possible I am so glad you figured this out
Thank you so much I needed this to make my games iPad friendly (can move sprite without keyboard)
I love the way you succed to optimize the code in all your videos !
Thank you so much for the tutorial
I can't wait until Griffpatch makes a ray casting tutorial in Scratch Jr 😂😂
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 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
Yeah - this opens up a lot of interesting ideas!
Thank you! This will be very useful for mobile games!
You bet!
This helped me a lot, thank you!
You're welcome!
So happy to see a new video!!!
Bro, still can't believe that there are people this talented and share there passion with others
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
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
hehe
lol
This is really helpful!
7:24
griffpatch: ‘JUMP!’
Cat: falls and floats back
Thank you Griffpatch! I didnt know this!
Cool! Keep it up!!
This is awesome ! ❤
Bruh, I was watching at 360p thinking that it was your phone's bad quality... 1080p is impressive for a phone!
THIS IS SO COOL! I hope someone figures out multiple full joysticks in the future
Thank you ❤❤ very help
This tutorial is great. I will use it to make a scrolling game or a platformer
This tutorial is great and excellent!
Here goes griffpatch again pulling something off in scratch that I've always thought was impossible for 7 years
thats too much help-ful, i love your games GriiffPatch
My first time seeing a member-only vid on the channel's page.
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
@@griffpatch btw can you help me with the image scanner? It breaks at Scan 2.
It's called "Scan 2, fail"
woah griffpatch you are so cool and thanks for the great tutorial .
Griff, I LOVE YOU!!! You are a genius!🗿🍷🤯
It's so usefull, thanks!
Thanks for making my school assignments so much easier!
**Giggles a bit** Does your homework involve making a platformer that is mobile friendly? **Giggles a bit more**
@@DJruslan4ic No but his other videos helped me a lot!
another great tutorial!, i have been here since 40k subs
Legend!
@@griffpatch btw i really like the paper minecraft one :)
ive known him since 2015
This guy's tutorials are never boring!
I agree
True
I want to use this in a mobile platformer game , thanks for this tutorial
amazing turtorial!!
2:32 I love that XD
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.
i mean you can always use turbowarp's extesion sensing+
YESS I love this! I wanted to make one one my own but im like... you cant use 2 mouse down presses lol! Thanks griffpatch! I'm sure we are all saying the same thing...
You're so welcome!
this help me thank you very much
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.....😊😊
i never thought this was possible, but griffpatch is the one who single handedly turned scratch into a gaming platform
Well, he's the same person who made Minecraft in scratch
@@scaptee you mean 2D minecraft?
@@CMM47 yep
@@scaptee that doesn't count, that's a simple platformer
@@CMM47 yes, but it contains inventory, dimensions, block breaking. It's not really the best, but still a monumental achievement.
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!
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
Man I use. Your tutorials when I was first doing scratch
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
i am bill i'm a scratcher too glad i know you! your videos are amzezing
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
Must get round to that!
@@griffpatch :O awesome!
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’m absolutely blown away HOW IN THE WORLDDD???
This would go great with my Platformer. Will do it once im home.
Can’t wait until someone makes Braw Stars in scratch
Extremely helpful
THIS IS WHAT I WANTED!
you should real consider continuing this series
Omg this is so cool!
I am kid now and i watch your tutorials for learn scratch
You a best scratch youtuber ever, who i know
Guys, he is too powerful, he found out how to create 2 mouse pointers
Thanks im a new sub❤