WebNov 9, 2024 · The first script makse sure that whatever Y Velocity variable you have changes the current Y by the value that you entered in. The times 0.98 block is to make sure that the gravity acclerates.The second line of code makes sure that whenever you are not touching the ground, it will guarantee that you always drop at an accelerating speed. WebIn this Scratch tutorial, I show how to code wall collision so that your sprites do not go through walls!Check out the link below to see the code for the pro...
How to Make Gravity on Scratch for Beginners - Discuss Scratch
WebApr 6, 2024 · jump/gravity scripts that work at any framerate. my scratch project is meant to work at any framerate, either using Scratch Addons' 60fps mode, or correctly calculating movement during a lag spike. it is a platformer, and the x movement works using the code at the bottom of the post. however, the jumping code does not work when set up similarly ... WebJun 7, 2024 · Scratcher 1000+ posts how to jump with gravity The usual method is to have a y-velocity which is used to adjust the y position each time through a loop. If y velocity is … jbl quincy jones headphones
griffpatch - YouTube
WebJan 7, 2024 · gravity script You can see the game Scratch Adventure or Scratch Adventure 2 to see how I use gravity and the gravity script is under the sprite Scratch. … WebNov 15, 2024 · Gravity Not Working Correctly in My Game The platform script you are using is this: when backdrop switches to backdrop 1 forever if touching ground and key space pressed? then set y velocity to 1 change y by y velocity Problem 1: You are not setting the backdrop correctly. I had to manually set backdrop to 1. WebOct 1, 2015 · I also wanna use collision but don't understand how to define the gravity and velocity and stuff. Those aren't there to start with. Discussion Forums » Help with Scripts » Collision Detection luther devil