Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make gravity?
- tntey
- Scratcher
100+ posts
How to make gravity?
So I have a project and I want to know how to simulate gravity with the people which you can drag and drop. The only problem is that when a person touches another person one of them will through the map. How do I make gravity so when two people touch eachother and they are both on the ground one of them does not fall to the bottom of the screen?
A computer is like an Old Testament god, with a lot of rules and no mercy. - Joseph Campbell
Check out Scratch Dev Tycoon
- trouble111
- Scratcher
7 posts
How to make gravity?
when green flag clicked
forever
if <not <touching color [floor color] ?>> then
change y by (-5)
end
end
- courtney6050
- Scratcher
6 posts
How to make gravity?
go to my profile and go inside my project blockies adventure press see inside and add the scripts inside blockie to your backpack
Last edited by courtney6050 (Aug. 6, 2014 00:01:33)
- Discussion Forums
- » Help with Scripts
- » How to make gravity?