Implementing "jump physics" into Scratch isn't that hard, while your jump system... works... it's just really easy to improve. For a simple run down of the most basic platformer engine, all you need really is five variables. Speed X, speed Y, falling, GRAVITY, and FRICTION. --- Getting Started First, you need to set GRAVITY and FRICTION to your desired values, and set speed X, speed Y, and falling to 0. If your player starts midair, then set falling to a high number. --- Physics Next, you need a forever loop, inside that forever loop you make speed Y change by GRAVITY every time and change Y by speedY, this will make the player fall down and progressively get faster. --- Vertical Collision So, you have a falling player, now you need collision. Make a custom block and name it whatever you want, and make sure to tick "run without screen refresh", inside of that custom block, add an if statement to check if the player is touching the ground/level, if so, then make a repeat until NOT touching the level and change y by 1 and set speedY to 0. --- Jumping Inside the forever loop, add an if statement with a keypress then make it so that when the key is pressed, speed Y is set to a number like 12, since we always call change Y by speed Y, this will make your player go up, then back down. This is very simple and looks way better, but if you spam the key, you can jump forever. To combat this, put a change falling by 1 block near the change Y block, and make sure that when the jump key is pressed, the falling variable is less than 3 to account for coyote time. Inside the custom block, make sure you set falling to 0 when you touch the ground. --- For player movement Use if statements for key presses and then add change speed X by (desired speed) accordingly. Negative for left, positive for right, all that. Then at the bottom, add a set speed X to speed X * FRICTION to get that slide. I recommend 0.8 for FRICTION (it's what I use), then add a change X by speed X. There you go, easy script. It might not be fully clear in this comment, but it should be easy enough to grasp.
@w_graphicsfr12 күн бұрын
I feel like you should have learned a little bit about scratch before starting.
@Code_It_All12 күн бұрын
You're right, but I wanted to see how "easy" Scratch was, as a coder
@Yehor-v7y12 күн бұрын
@@Code_It_Alla little bit
@BangoloBangala10 күн бұрын
@@Code_It_All i got so mad dude you could do the smooth jumping script in scratch as well dude
@ceddavis744110 күн бұрын
for those learning to program, I would suggest using godot. Not because of "real" programing, just because it's very, very versatile. It's both 2D and 3D and is for the most part, easier to push out into the "professional" world.
@jefreestyles13 күн бұрын
Visual programming is kinda cool before learning how to type properly and speedily. So like between grades 1 and 4 or so. Also, learning game concepts from them is nice but then learning the different branded terms is going to be annoying. E.g. broadcasts vs functions. Just like call them functions for goodness sake.
@Funey-Potat-Enjoyer8 күн бұрын
my blocks are functions, not broadcast blocks
@dqnkdoggo_10 күн бұрын
I prefer visual programming because 1. I’m stupid af 2. I’ve always been a visual learner
@rafaelryan29 күн бұрын
i changed from pocket code to godot, now i just need to learn about godot's ui and gdscript
@Code_It_All7 күн бұрын
It's really simple if you like I have some starter videos on Godot to make a simple FPS game ( even a Horror one ! )
@ujjuplays474813 күн бұрын
You got a sub❤ I am beginner and I found this channel very useful for me 💖
@Code_It_All12 күн бұрын
Thank you for the Sub and Support, means a lot :)
@Gravelbridge13 күн бұрын
Damn your so underrated i loved the vid man
@InvasionAnimation10 күн бұрын
I think a more ideal visual code engine would be gdevelop. It even runs in the browser too. Godot is way better than scratch. I am still learning to code but I bet bit will be more powerful than gdevelop as well, even though I really like Gdevelop.
@Code_It_All10 күн бұрын
I've heard a lot of people tell me try GDevelop, might wanna give it a try, thanks for your time watching the vid :)
@g0rped9 күн бұрын
6:13 bro. Just place show outside the forever loop, right below the green flag event
@CrasyGuy12 күн бұрын
How is scratch not coding ?
@Yehor-v7y12 күн бұрын
It is
@PixelatedInsightsOfficial11 күн бұрын
@@Yehor-v7y its coding but its not good enough for proper games
@DeoxyRiboNucleicAcid4711 күн бұрын
@@Yehor-v7y it isn't. coding and programming are not necessarily the same thing. coding is typing out computer code in a programming language, while visual scripting is not. visual scripting is programming just as much as coding is, but coding and visual scripting are two different methods of creating a computer program.
@CrasyGuy9 күн бұрын
@@PixelatedInsightsOfficial 👺 You crossed the line 😦
@BLUEBLY4877 күн бұрын
very good explanation @@DeoxyRiboNucleicAcid47
@GabrielB-cg8rj12 күн бұрын
Pretty cool video. I’d like to see you try this again but maybe with the help of someone who understands scratch a bit better! Like you both try to make the same game in the respective methods
@SupernovaesAnimations11 күн бұрын
If you want an actual good visual scripting engine next time you should use GDevelop or Construct
@BLUEBLY4877 күн бұрын
construct is paid, so game maker won't attack your wallet
@riyajulislam108210 күн бұрын
I love this bro, I subbed just now can you please make a whole series where you teach godot 3.5 I have a really old computer so it can only run the 3.5 version but I really like 2d games but I am really bad at gd script so please bro.
@hallcreeper12 күн бұрын
It was so good but visual code is not further than text coding it just want you like to code with I have tried godot and scratch but I prefered scratch because I use it better and yah 4:24 I did😂😂
@Natasha-fr1sf11 күн бұрын
Im a begginer and ive never heard someone call JUMPING hard
@luisenriquevictoria646210 күн бұрын
Im am a scrath dev and to code jump in scrath jump when flag click if then space click repeat y block 10 reapeat y block -10
@bobthebuilder-do1rt9 күн бұрын
Theres a forever block
@Code_It_All7 күн бұрын
I did USE it
@Vooom_OFFICAL13 күн бұрын
W vid
@CoderCraft20249 күн бұрын
The set score to score+1 is insane! (Not hating btw). Change score by 1 does the sme thing.
@Code_It_All9 күн бұрын
I see your point, but that's just my "coder" brain doing it's best since that's how you do it in GDScript
@toyekol011 күн бұрын
idk why you using set variable to instead of change variable to for score annoyed me so much but it just did what the hell
@yahiasanimations11 күн бұрын
He made everything wrong
@andrejbreininger888912 күн бұрын
Nice Video.
@WoollyMammoth40407 күн бұрын
The ironic thing is he actually did more coding in Scratch than he did in Godot. Installing a physics engine and using a pre-built camera system is not coding. In Scratch, since you actually have to code those things yourself, he was lost! He wouldn’t even know how to do that in Godot! It’s honestly sad that he thinks what he did in Godot is more advanced than what he was trying to do in Scratch. Guarantee you he’s worse at understanding code logic than an experienced Scratcher.
@Code_It_All7 күн бұрын
It is not advanced code, but better result, by someone who has mostly written code, however the underlying code for physics is more advanced. The point of this video is not about which one is more advanced or better...
@WoollyMammoth40407 күн бұрын
@Code_It_All Obviously you get a better result when you take code that other people have dumped hundreds of hours into making. What are you even comparing here? “underlying code” lol you realize Scratch doesn’t have this “underlying code”, right? Meaning you actually have to code it yourself. And yet you have the audacity to imply that you were coding the game in Godot whereas you were doing it in Scratch “without coding” as stated in the title. If anything, you were coding in Scratch and not coding in Godot
@yoguysitsdrak11 күн бұрын
Im sorry but idk what i was feeling when reading your code in scratch, honestly for a beginner it was not that bad, i think you should have done like some research before starting!!
@SouperMediocre12 күн бұрын
I don't use scratch but I use visual programming. I know some java but I can code much faster with visual programming. my high school uses a platform called Microsoft makecode arcade - it can do what java can with visual programming and I have made some crazy things with it, most of which do not run well due to the terrible platform.
@qiaolin39198 күн бұрын
I am literally you but instead of godot I use ue5, I did a bit of blueprint but overall I like c++
@BLUEBLY48712 күн бұрын
why compare something made for 6 year olds against Godot.. Gdevelop would be more fair, it would show people that you can make complex games without needing to use Godot or unreal or unity. I never hear people talk about Gdevelop
@banka_gd12 күн бұрын
Хорошее видео
@archniki_10 күн бұрын
That coding blcoks shall get more attention
@joeisfat10 күн бұрын
i feel so insulted
@kiekiestudios11 күн бұрын
no offence but you are not good a scratch,feels slightly unfair that this is your first time making a scratch game (i died of cringe 80s ofter you opend scratch)
@kiekiestudios11 күн бұрын
i had to leave at 3:40 not finding the forever loop made me feel mentaly damaged