Это видео недоступно.
Сожалеем об этом.
Creating Mobile Controls on Scratch
- Добавить в
- Мой плейлист
- Посмотреть позже
- Поделиться
Поделиться
HTML-код
Размер видео:
- Опубликовано: 4 сен 2024
Комментарии • 114
Следующие
Автовоспроизведение
The Variable HACK 🔨 Not many Scratchers know... yetgriffpatch
Просмотров 607 тыс.
How to make a Joystick in Scratch | Scratch Tutorial!Alex Steve
Просмотров 23 тыс.
NEVER DO this on SCRATCH ! | EP 3SL Smart Mind
Просмотров 1,2 млн
How to get Spongebob El Primo FOR FREE!Brawl Stars
Просмотров 12 млн
I Tried Air Traffic ControlMichelle Khare
Просмотров 744 тыс.
Former aide to N.Y. Governors Hochul, Cuomo arrested by FBICBS New York
Просмотров 258 тыс.
OFFLINETV PLAYS REVERSE CHARADES ft. QTCinderellaOfflineTV
Просмотров 886 тыс.
ChatGPT Makes a Scratch GamePolyMars++
Просмотров 1 млн
The Easiest Way to Get Popular on Scratch...How-To-Scratch
Просмотров 19 тыс.
I Tried Making a 3D Game in ScratchJackson Academy
Просмотров 348 тыс.
Creating Epic Sword Animations with Scratch Cat | Devloggriffpatch
Просмотров 557 тыс.
Making an APP using Scratch!ProjectLabs
Просмотров 102 тыс.
Arrow key movement in Scratch for Mobile Friendly Games | Tutorial scratch|Tutorial (Scratch)
Просмотров 5 тыс.
Making a Scratch Game using a SINGLE SCRIPTSL Smart Mind
Просмотров 34 тыс.
Make your project UNREMIXABLE !SL Smart Mind
Просмотров 212 тыс.
"Save My Game!" 💾 Data Serialization & Escaping in Scratchgriffpatch
Просмотров 344 тыс.
when you have plan B 😂Andrey Grechka
Просмотров 3,8 млн
НЕДОВОЛЬНА УСЛУГОЙ #shortsEkaterina Kawaicat
Просмотров 19 тыс.
Татьяна Куртукова «Одного», слова и музыка-Пётр Андреев#матушка#татьянакуртуковаТатьяна Куртукова
Просмотров 155 тыс.
ЭТО РАСТЕНИЕ - РАЙДЕН МИРА ПВЗ! / PLANTS VS ZOMBIESIGRARIUM - Игровые обзоры
Просмотров 592 тыс.
Каким женщинам мужчины дарят подарки?Женщины
Просмотров 423 тыс.
ИЗ-ЗА ЭТОГО Я ПОЛУЧИЛА СУПЕРСПОСОБНОСТИ #луана #мультик #анимацияЛуана
Просмотров 98 тыс.
Антон Теляков задаёт странные вопросы прохожимСклад Телякова
Просмотров 125 тыс.
Кровожадный зверь или ласковая доча?🥹Я считаю не оправдыванно о ней так… а что думаете вы?Нравится?Мама Дзена
Просмотров 2,3 млн
Thank you, I didn’t know that it needed the ‘mouse down’ block. Because if you don’t use that block, the scratch cat just goes in that direction forever. Thank you for the tutorial!
Yep! Glad it helped. Thank you!
It works very well! I had to make my game mobile friendly before a school project, and this was very quick and easy to do.
Awesome! I’m glad it helped!
It works and it’s perfectly smooth, 10/10!
Awesome to hear!
Just put this code:
When this Sprite (Arrow Button On Mobile) Clicked
Broadcast [ (Left Or Right Message) ]
For the Character:
If i received Broadcast [ (The lastest Message) ]
And put some Motion blocks that countain moves!
E se eu quiser que ele fique em loop, até eu soltar?
@@MateusLord*use*
*if touching mouse pointer and mouse down?*
@@NotAlphaSlayer15 obrigado
Maybe you should add a platform so that you can program the sprite to go to the ground after clicking the jump button
*use for jump*
*If then Key up arrow pressed or mouse down?*
*change y by (y speed) or (number)*
How to press jump and walk at the same time, mine doesn't work, can do it at one time.
Make sure the events in the player where the player walks and jumps are not in the same chunk of script.
Ohhhh so is mean we can't do it cuz of script?
You are a life saver I need it this for my first scratch game
Thank you!! I am glad it helped :D
Love your videos am Wolfgang355 Remember me from scratch
Thank you! Yes, of course I remember!
I'm making a platformer so this help me a lot
Glad to hear it helped!
This is really smooth! Ty!
You’re welcome!
Also could you make a how to add gravity tutorial?
Hey! You can find information on gravity here! ruclips.net/video/KAPg6yXVjt4/видео.html
@@how-to-scratch thanks
@@Exinciti No problem.
when green flag clicked
forever
change y by (Gravity)
change [Gravity] by (-1)
I managed! but when the sprite left and right buttons are hidden and if I click in the same place where they are, the code will work! what's the matter? how to remove?
Huh, weird! That should not be possible. Make sure that they are hidden with the "hide" block, and if that fails, I would try to temporarily relocate the buttons to the edge of the screen until no longer hidden:
if hidden:
go to: -999,-999
else:
go to: (position for when not hidden)
And yo u can check for if hidden however you want to.
@@how-to-scratch very thanks!
@@nutobrewe_banana Of course!
You can do it with the move () steps too.
Hey, this might be kind of a complicated question.. but I’m making a game that is both mobile and PC compatible. It’s easy to code in the whole “if clicking right arrow move right” thing and it’s easy to put in the little arrows + jump for mobile.
For context, at the beginning of the game it asks “are you on mobile or PC” to which it sends the signal of whatever the player clicks, BUT there are multiple places on the map you have to travel to, and when it opens a new backdrop, it HAS to send the signal to get mobile controls regardless of what the player selected because I don’t know how to make it consistently check if the player is/selected mobile.
Is there a way I can code it in so when the player selects that, it’s possible to check, especially since both “When background switches to” and “when I recieve (signal)” are top blocks, therefore can’t be stacked together.
Is this too complicated?? Let me know if you have any other questions. Thanks !!
@@SlightlyOffendedKiwi hi! Let me see if this is correct.
When you initially select mobile, what if you set a variable you could call mobile to true, then throughout the project have an if statement that checks if mobile = true and if so shows the controls?
If I misunderstood please let me know!
@@how-to-scratch hey that might work!
If I understand you right, I should make a variable titled ‘mobile’ and when the player selects said variable, I put a statement saying “if mobile = true then show controls”?
Let me run the code for that
@@SlightlyOffendedKiwi essentially yes! Rather, when the player selects the option for mobile (whatever button they select mobile with) then it sets the variable mobile to true
@@how-to-scratch it worked! Thank you so much!!
Can we created an Project like you with phone with make Contorller
I’m not really sure.
hiim from 2024 of january im 2 day old de, i think u should use ,when this sprite is click, if "not-mousedown" then, brodcast message 1(for arrows),when i receive "message 1", repeat 10 change x by 10
It work but in the platformer it goes through the platform i just dont understand
broadcast is a easier way for me but this is better
Thanks bro 😎
oh my freaking god it works thank you!!
I’m glad it helped!
How can do that walk and jump both work when I press them both
Hello how can I make it so that the character can move around a 2d map with the mobile controls (scrolling camera basically). Because I’ve been having trouble to find how to do it. And if there’s anything you don’t understand then let me know :D
If it’s for a scrolling platformer, here is a video that would help with that:
Creating Your First Scrolling Platformer on Scratch - LEARN HOW!
ruclips.net/video/02ES7e7HHmI/видео.html
You could implement the button controls with the video by using broadcasts to tell the level when to move.
Thank you, but I’ve been trying to do the code and it still doesn’t work. Can you give me the code so I can make it when I click the mobile button the camera scroll moves aswell? And also sorry if I’m bugging you or anything.
@@lizzyr.i.p2203 I will need to view the actual project and code itself so I can see how you are working with it so far. Would you be able to share it with me?
Thank you for your video you are the best
No problem, and thank you!!
And not maze wall detection
Thx
No problem!
I can't jump and move right/left at the same time
Make sure they aren’t in the same chunk of code
nice
Thank you!
how could i insert the when i receive jump into an if key pressed box
What if you did, When I receive jump > if key pressed?
Cool
Thank you!
Can you tell me when i turn left the chracter also turn left plz tell me
Make sure you have this:
When Green Flag Clicked: Set Rotation Style
@@how-to-scratch thanks for give idea
It works
That’s great to hear!
What if I have animations in a sprite when it walks? It's really glitchy
You are absolutely right! Create a separate loop for the animation. You could do:
When flag is clicked:
Forever:
If Touching and Mouse Down?:
Switch Costume to
Wait 0.15
Switch Costume to
Make scratch cat face the direction of the button when pressed like me
Ah! To do that, do this:
When Green Flag Pressed:
Set Rotation Style
Then for each button, when pressed on the left button:
Point in direction: -90
For right button:
Point in direction : 90
But yeah it’s smooth
Pls no click [. ] Button
Thankyou
You're w elcome!
does this help when we use touch screen also?
Yes!
I make maze for mobile but i try making like this mobile control but the cat going in maze wall 🧱 so what solution
Try following this maze tutorial here: ruclips.net/video/TTEsHhaejZ8/видео.html
Implement the mobile controls with the collision detection and see if that works!
If you get stuck along the way, feel free to share and send the project here, and I can help with the code if you would want!
When I receive button doesn’t exist
Nvm I found it
@@Axochata yay!
Change x by -10 is Not working 😭
Noooo that’s not good
Change x by -10 does the same thing as moveright can you please fix it
Okay i found Out this is works is by making move left by (Move -10 steps!)
So how to touch 2 places at once
Could you give an example of what you mean please? :D
@@how-to-scratch i want to go right but jump at the same time but im not sure if that would work
@@how-to-scratch like in my platformer i tried adding mobile controls but what happened was it didn’t work as well because you cant jump and go right at the same time
5:09
Open Scratch But On Mobile
O have question for you?
Let me know your question and I’ll do my best to answer!
It didnt work
I'd love to take a look at your code and see what the issue might be! Would you be able to send me the link to the project, and then I could possibly help you with it?
@@how-to-scratchit didnt work because you only can press ONE button at the same in a phone, because scratch uses "the pointer" to touch a button, and "the pointer" is 1, no 2 or more
@@how-to-scratchThis is the reason because is imposible
@@LVXD-og7iwYou forgot to send the link of the project.
@@how-to-scratchthats literally my ideas on mobile
the quality is so bad
On the video?
yeah
@@superyousif That's odd. It shouldn't be bad because the highest quality it goes to is 1080p60FPS.
@how-to-scratch nahh bro the quality is amazing 👌
@@barryiscool for real broo
Hey thats my idea