*Don't Turn On Turbo Mode* Experiment. This code contains Acceleration, Friction and Gravity and even Air Resitence, it accelerates not only with the moving left and right but also up and down. If you set the friction to 0 you won't be able to stop it from staying at the edge if you set the Acceleration to 0 then you wont be able to move at all. I am sorry that you can move in the air, I hope to soon fix that, how long it spends in the air, that you can double jump. ---CoolExtraEffects--- -If you press "C" it changes the costume -If you press the "Space Bar" it changes the Background . -If You Change The Sprite Trails To Make It Higher Or Lower The Size/Length Of The Sprite Trail Changes. -If You Press "S" It Shows Some Of The Code I Created For The Joystick Some Of It Is Unnecessary However It Is Useful If You Want To Use The Joystick It Tells You A Total Of Two Ways To Code The Joystick Griffpatch's Way Or My Way. If You Press "H" It Hides The Code I Created For The Joystick, however it does hide all the variables including the Gravity, Bounce, Friction, Acceleration for one second than show them again.
#PhysicSimulation #Simulations #Experiments #Games *The Sprite Trail Hides The Bounce* *Once The Y Is Above 150 There Is A Wall At The Right And Left Edge* (At the bottom changes to come out soon and changes made) *One Type Of Mobile Friendly* ---WhatDoesOneTypeMean--- When I say one type I mean that if you hold the joystick, just like you hold the keys(except the up/jump with the joystick is different) it will keep on moving until you let go of the joystick/keys in the future I plan to stop this from happening and making it fully optional, I also in the future plan to make it more customizable when it comes to the joystick, so you can change the colour and other things, I also plan to make it so that if you are mobile friendly you can access the CoolExtraEffects(see towards the bottom of the instructions), by clicking a button. ---HowTheJoystickIsGoingToWork--- The joystick will use triangular motion to figure out the movement, by first figuring out the difference between the x and y of the stick to the base and then transcribing that to the code for the movement of the sprite that you do the experiment on. It is now complete, it bounces, it acclerates when falling and has gravity. It has a fully-opperational loading screen. I was looking at other people's project like Griffpatch and AnimationsScratch code and I sat there wondering how they could possibly be so good at coding. Then I researched what I was missing and how I could get better at scratch and I realised that I wasn't the best and showing physics in a scratch project so I decided to try and make it and this is the outcome. I do admit that I took inspiration from and . Also I do plan for there to be a version 2 where you can change the size and if affects the friction, gravity, acceleration and everything else, I also plan or there to be a version three where you can add other shapes. *Sorry if it doesn't work randomly I am probably editing the project and that is an out come of that* *Big Changes To Come Out Soon* -Some have already be made and done and would be in the section bellow. 1) A mobile friendly version. Thanks to for the idea of a mobile friendly version. Though I am the one who will make it/made it, but for now I used Griffpatch's version though of course due to the way I coded my Project I had to edit Griffpatch's mobile friendly joystick. 2) Sprite Trail(Clones)(Up Isn't As Good) 3) Never Ending Screen(Basic Plan For It) Where If You Reach The End It Goes Back To The Left Most Screen Or Maybe It Could If You Want Go To A Completely New Screen By Using Griffpatch's Tutorial and Editing It To Fit the Purpose Of My Project 4) There Is Soon To Be An Option Making It So That It Is Optional If You Want To Be Able To Move Mid Air Or Not. 5) Better Loading Screen That Takes Every Thing Into Account And More Functional. 6) This specific one is quite a large one and is going to take some time, I plan to add a trampoline/a spring so that the sprite can jump even higher when it jumps on it, I may even add it to the wall to change the x value too. 7) I also soo plan to add music with a button and an option to play the music, change the song or stop the music. 8) Soon there will be a new slider for all the variables currently with sliders. 9) There will soon be an option too change the style of the sliders for all the variables. 10 and 11) I soon plan to make a basic Never Ending Screen where if you reach the edge it sends you back to the other edge so if you touch or hit the right edge you go to the left edge and keep on going and also I soon for number 11 plan to make it optional for it to be a never ending screen. 12 and 13) Never Ending Screen I soon hope to make it so that once you reach the edge you can keep on going, I am likely going to use Griffpatch's tutorial, to make the never ending screen. Also I soon plan to make it so that on the second page things like trampolines and spring exist. 14) I also soon plan to make a settings button to change and hide the variables and slider, but also too change the type of movement into like a spring motion or any other type. *AlreadyDoneChanges* 1) Sprite Trails 2) New Background 3) Background Changer(By Pressing Space) 4) One Type Of Mobile Friendly 5) New Better Loading Screen 6) You Can't Move In The Air 7) New Slider For The Sprite Trails. 8) The number 10 Never Ending Screen