Impossible "Multi-Touch" Joysticks!!! đđ±đ Mobile Friendly Scratch Coding Tutorial
VloĆŸit
- Äas pĆidĂĄn 28. 07. 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 CZcams 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 CZcams kids still has gaming videos and popular CZcamsrs so yeah
CZcams kids = poo
CZcams = rule
CZcams kids = no gud contend
CZcams = 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.
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
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.
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.
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.đ€
I want to let you know that your tutorials have been very helpful to me thanks a bunch Griffpatch!! đđ».
YES A NEW VIDEO
I'm excited to watch!
This explanation is REALLY helpful!
Thank you for making a mobile friendly tutorial. It helped me make a mobile friendly test on scratch, for my new gameđ.
7:22 had m
e wheezing lol, brilliant tutorial griffpatch (and scratchy)
I'm considering becoming a member, because I really want to support these awesome videos you make!
That would be awesome :D
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!
i just saw this 2 days ago, but still, I just feel like scratch needs to hire you because of your skills of coding.
Finally, I can now test my platformer in my tablet. Thanks griffpatch!
OH MY GOSH. JUST IN TIME! NY GANE NEEDS THIS SO MUCH. THANKS YOUYU
so long since I watched your videos. This is crazy cool
YESSSS!! YOU ARE A LEGEND- I SPENT TWO MONTHS STRESSING ABOUT THIS!!!
I KNEW this was possible I am so glad you figured this out
So happy to see a new video!!!
Insane! Griffpatch, thanks for the tutorial =D. Love it, it upgraded my game XD. And also thanks for inviting me to your studio!
???
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
This helped me a lot, thank you!
You're welcome!
Nice! Griffpatch makes such nice games for us! Thank you so much I appreciate it đ
My goodness gracious! This is lit Insane! Superb vid! You're the best teacher ever.
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
This is awesome ! â€
Awesome as always !
Would love to see a tutorial on a turn based game like Pokemon :D
SL Smart Mind?
i like ya vids
I love the way you succed to optimize the code in all your videos !
Thank you Griffpatch! I didnt know this!
Wow that was great. I liked how this turned out amazing.
Glad you liked it!
Insane clever! :O I search for this so long and finally i found it!
Hallo, du bist ja auch hier auf CZcams xD
@@tigertut Ja, hallo! XD
@@Stunt7 Lol
This is really helpful!
Good work griffpatch đ
This tutorial is great. I will use it to make a scrolling game or a platformer
Wow! You finally solved a Hard puzzle. Well done đđ
Going to be so nice seeing platformers finally use decent mobile controls
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 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...
2:32 I love that XD
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
Thank you! This will be very useful for mobile games!
You bet!
amazing turtorial!!
It's so usefull, thanks!
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 so much for the tutorial
Cool! Keep it up!!
I have made this joy stick,and it was great!
This tutorial is great and excellent!
Extremely helpful
Griffpatch, your videos are so amazing, and they inspire me to get scratching every day of my life!
So glad to hear that!
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?
Thank you so much I needed this to make my games iPad friendly (can move sprite without keyboard)
Bro, still can't believe that there are people this talented and share there passion with others
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"
THIS IS SO COOL! I hope someone figures out multiple full joysticks in the future
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
Thank you â€â€ very help
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
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
This would go great with my Platformer. Will do it once im home.
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.
This guy's tutorials are never boring!
I agree
True
Man I use. Your tutorials when I was first doing scratch
The last time you said,"for this lemon only." Got me laughing đ
Bruh, I was watching at 360p thinking that it was your phone's bad quality... 1080p is impressive for a phone!
Omg this is so cool!
woah griffpatch you are so cool and thanks for the great tutorial .
I want to use this in a mobile platformer game , thanks for this tutorial
FINNALY!!!! THANK YOU
this help me thank you very much
you should real consider continuing this series
is the second cat sprite when you create a new project a walking sprite or a jumping sprite???
Literally this affects the UI for my combat flight sim plans.
Griff, I LOVE YOU!!! You are a genius!đżđ·đ€Ż
Thanks im a new subâ€
Good thing that this is a video because I was planning to make a mobile update for my game
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âm absolutely blown away HOW IN THE WORLDDD???
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
THIS IS WHAT I WANTED!
Could we adapt this to have the joystick and 2 buttons? I want my game to be mobile friendly but it uses the arrow keys and the z and x keys. Could you please help?
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 don't know if I've done something wronge but my joystick on mobile stays in the same place and moves when I'm not touching it and the joystick also triggers jumping idk if yours is also like that
question, for my game, I already have all the controls for computer set up. would it mess stuff up if I skipped up to the mobile controls coding and only did that?
Yay wow thanks gruff patch now this is fun for rpg series as if I wanna attack in rpg
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!
wow this so good!
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 đ.
Amazing!
i have an important question; lets say i have four clones, i know how to make a line between them (usign pen extension) so i can make a shape by connecting them with pen down but important question is how can i fill inside this shape with only usign pen? is it possible?
I forgot to say this but
How do I do LV Music and Change the Background on a scene?