Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Gravity
- robot_amelia
- Scratcher
30 posts
Gravity
Are you wondering about how to do gravity? Well here is a quick tutorial! Make a valuable and call it gravity:
I hoped this helped!
when green flag clicked
set [gravity v] to [0]
forever
wait (gravity) secs
change [gravity v] by (-1)
change y by (gravity)
end
I hoped this helped!
- bRuHbRuHmEmEmAn
- Scratcher
100+ posts
Gravity
For future reference, the HwS fourm topic is a place where you Are you wondering about how to do gravity? Well here is a quick tutorial! Make a valuable and call it gravity:get help with your scripts rather than give help/tutorials.when green flag clickedset [gravity v] to [0]forever
wait (gravity) secs
change [gravity v] by (-1)
change y by (gravity)
end
I hoped this helped!
(#`Д´ :: #999999) (#`Д´ :: #999999) (#`Д´ :: #999999) (#`Д´ :: #999999) (#`Д´ :: #999999) (#`Д´ :: #999999) (#`Д´ :: #999999) (#`Д´ :: #999999) (#`Д´ :: #999999) (#`Д´ :: #999999) (#`Д´ :: #999999) (#`Д´ :: #999999) (#`Д´ :: #999999)(#`Д´ :: #999999)(#`Д´ :: #999999) (#`Д´ :: #999999) (#`Д´ :: #999999):: reporter :: #444444 // First line of defense - Gunners
(‡▼益▼:: #ff4444) (‡▼益▼:: #ff4444) (‡▼益▼:: #ff4444) (‡▼益▼:: #ff4444) (‡▼益▼:: #ff4444) (‡▼益▼:: #ff4444) (‡▼益▼:: #ff4444) (‡▼益▼:: #ff4444) (‡▼益▼:: #ff4444) (‡▼益▼:: #ff4444) (‡▼益▼:: #ff4444) (‡▼益▼:: #ff4444) (‡▼益▼:: #ff4444) (‡▼益▼:: #ff4444) (‡▼益▼:: #ff4444) (‡▼益▼:: #ff4444) :: reporter :: #aa0000 // Second line of defense - Heavy Gunners
(╬◣_◢ :: #44ff44) (╬◣_◢ :: #44ff44) (╬◣_◢ :: #44ff44) (╬◣_◢ :: #44ff44) (╬◣_◢ :: #44ff44) (╬◣_◢ :: #44ff44) (╬◣_◢ :: #44ff44) (╬◣_◢ :: #44ff44) (╬◣_◢ :: #44ff44) (╬◣_◢ :: #44ff44) (╬◣_◢ :: #44ff44) (╬◣_◢ :: #44ff44) (╬◣_◢ :: #44ff44) (╬◣_◢ :: #44ff44) (╬◣_◢ :: #44ff44) (╬◣_◢ :: #44ff44) :: reporter :: #00aa00 // Third line of defense - Tanks n' Stuff
(≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) (≖、≖╬ :: #4444ff) :: reporter :: #0000aa // Final line of defense - Death Rays
A message from the founder of bRuHbRuHmEmEmAn's signature defenseYour average HwS fourm roamer. Ask me anything.
There's no possible way the kumquats can get through this, amirite folks?
Before you ask, yes, I am a furry, and if you're thinking in your head “eww a furry,” then please do your research. Furries aren't bad people. Well, most of them.
- ShadowWolfPhantom
- Scratcher
1 post
Gravity
when green flag clicked
set [ Gravity] to [1.5]
set[ speed y] to [0]
forever
if <touching color [#f54671] ?> then
set [ speed y] to [0]
end
change [ speed y] by (Gravity)
change y by (speed y)
end
I use this
- robot_amelia
- Scratcher
30 posts
Gravity
Replying to @ShadowWolfPhantom
Cool idea! Sorry there is a floating block.
Cool idea! Sorry there is a floating block.
define Thank you! That was cool [thanks]
say (join [Thanks! I love the idea ] (thanks) for (2) secs
move (30) steps
play sound [I really do love the idea. v]
say [I might try it out!] for (2) secs
- MrKingofScratch
- Scratcher
100+ posts
Gravity
The discussion forums aren't a place for making tutorials, unless they're to answer someone's question. In that case, add the tutorial to their post instead of making a new one. You can, however, make a tutorial in a project.
See this post by a scratch team member for more info.
See this post by a scratch team member for more info.
- robot_amelia
- Scratcher
30 posts
Gravity
when green flag clicked
say [OK,thank you] for (2) secs
broadcast [Haha! I'm doing this in blocks. v]
when I receive [OK I know now about how the Fourms are not tutorials. Please stop reminding me. Thanks! v]
- MrKingofScratch
- Scratcher
100+ posts
Gravity
their post instead of making a new one. You can, however, make a tutorial in a project.The discussion forums aren't a place for making tutorials, unless they're to answer someone's question. In that case, add the tutorial to
See this post by a scratch team member for more info.
when I receive [OK I know now about how the Fourms are not tutorials. Please stop reminding me. Thanks! v]
I was also letting you know that you can post tutorials in projects. Hope this cleared stuff up.
- Discussion Forums
- » Help with Scripts
- » Gravity